engineer-thesis-WUT/Engine/engine/match.cpp

38 lines
779 B
C++
Raw Normal View History

2022-08-27 21:43:58 +02:00
#include <GLFW/glfw3.h>
int main(void)
2022-08-25 17:17:53 +02:00
{
2022-08-27 21:43:58 +02:00
GLFWwindow* window;
/* Initialize the library */
2022-08-28 18:40:39 +02:00
if (!glfwInit())
{
2022-08-27 21:43:58 +02:00
return -1;
2022-08-28 18:40:39 +02:00
}
2022-08-27 21:43:58 +02:00
/* Create a windowed mode window and its OpenGL context */
2022-08-28 18:40:39 +02:00
window = glfwCreateWindow(640, 480, "xD", NULL, NULL);
2022-08-27 21:43:58 +02:00
if (!window)
{
glfwTerminate();
return -1;
}
/* Make the window's context current */
glfwMakeContextCurrent(window);
/* Loop until the user closes the window */
while (!glfwWindowShouldClose(window))
{
/* Render here */
glClear(GL_COLOR_BUFFER_BIT);
/* Swap front and back buffers */
glfwSwapBuffers(window);
/* Poll for and process events */
glfwPollEvents();
}
glfwTerminate();
return 0;
2022-08-25 17:17:53 +02:00
}