反乔展荣吧 关注:8贴子:46
  • 2回复贴,共1
#include <GLFW/glfw3.h>
#include <GL\GL.h>
int main(void)
{
GLFWwindow* window;
/* Initialize the library */
if (!glfwInit())
return -1;
/* Create a windowed mode window and its OpenGL context */
window = glfwCreateWindow(1280, 786, "DofEngine Game", NULL, NULL);
if (!window)
{
glfwTerminate();
return -1;
}
/* Make the window's context current */
glfwMakeContextCurrent(window);
/* Loop until the user closes the window */
while (!glfwWindowShouldClose(window))
{
/* 添加渲染代码 */
glEnd();
/* Swap front and back buffers */
glfwSwapBuffers(window);
/* Poll for and process events */
glfwPollEvents();
}
glfwTerminate();
return 0;
}


1楼2015-10-25 17:54回复
    #include <GLFW/glfw3.h>
    #include <GL\GL.h>
    int main(void)
    {
    GLFWwindow* window;
    /* Initialize the library */
    if (!glfwInit())
    return -1;
    /* Create a windowed mode window and its OpenGL context */
    window = glfwCreateWindow(1280, 786, "DofEngine Game", NULL, NULL);
    if (!window)
    {
    glfwTerminate();
    return -1;
    }
    /* Make the window's context current */
    glfwMakeContextCurrent(window);
    /* Loop until the user closes the window */
    while (!glfwWindowShouldClose(window))
    {
    /* 添加渲染代码 */
    glEnd();
    /* Swap front and back buffers */
    glfwSwapBuffers(window);
    /* Poll for and process events */
    glfwPollEvents();
    }
    glfwTerminate();
    return 0;
    }


    2楼2015-10-25 17:54
    回复
      2025-09-01 22:07:42
      广告
      不感兴趣
      开通SVIP免广告
      #include <GLFW/glfw3.h>
      #include <GL\GL.h>
      int main(void)
      {
      GLFWwindow* window;
      /* Initialize the library */
      if (!glfwInit())
      return -1;
      /* Create a windowed mode window and its OpenGL context */
      window = glfwCreateWindow(1280, 786, "DofEngine Game", NULL, NULL);
      if (!window)
      {
      glfwTerminate();
      return -1;
      }
      /* Make the window's context current */
      glfwMakeContextCurrent(window);
      /* Loop until the user closes the window */
      while (!glfwWindowShouldClose(window))
      {
      /* 添加渲染代码 */
      glEnd();
      /* Swap front and back buffers */
      glfwSwapBuffers(window);
      /* Poll for and process events */
      glfwPollEvents();
      }
      glfwTerminate();
      return 0;
      }


      3楼2015-10-25 17:54
      回复