LearnOpenGL/Entry/test.cpp

27 lines
439 B
C++

#include "test.h"
#include "../Lib/glfw-3.3.6/include/GLFW/glfw3.h"
int main()
{
GLFWwindow* window;
if (glfwInit() == false)
{
return -1;
}
window = glfwCreateWindow(800, 600, "addd", NULL, NULL);
if (!window)
{
glfwTerminate();
return -1;
}
glfwMakeContextCurrent(window);
while (!glfwWindowShouldClose(window))
{
//glClear(GL_COLOR_BUFFER_BIT);
glfwSwapBuffers(window);
glfwPollEvents();
}
glfwTerminate();
}