diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-15 15:05:07 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-15 15:05:07 +0200 |
commit | 83ed40fd01120e1b46dba5d2bac895862731196d (patch) | |
tree | a2d4e78ec97e337d8808e234d70aaccc95c53bb4 /main.c | |
parent | 0a5c176456b7afe024910183392d59116c37088e (diff) |
separate draw loop into file
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,7 @@ #include <stdlib.h> #include <GLFW/glfw3.h> +#include "draw.h" #include "die.h" void resize_handler(GLFWwindow* window, int width, int height) { @@ -28,10 +29,9 @@ int main(int argc, char** argv) { resize_handler(window, width, height); while (!glfwWindowShouldClose(window)) { - glClearColor(1.f, 0.f, 1.f, 1.0f); - glClear(GL_COLOR_BUFFER_BIT); - + draw(window); glfwSwapBuffers(window); + glfwPollEvents(); } glfwTerminate(); |