aboutsummaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-15 15:05:07 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-15 15:05:07 +0200
commit83ed40fd01120e1b46dba5d2bac895862731196d (patch)
treea2d4e78ec97e337d8808e234d70aaccc95c53bb4 /draw.c
parent0a5c176456b7afe024910183392d59116c37088e (diff)
separate draw loop into file
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/draw.c b/draw.c
new file mode 100644
index 0000000..0dfa09c
--- /dev/null
+++ b/draw.c
@@ -0,0 +1,6 @@
+#include "draw.h"
+
+void draw(GLFWwindow* window) {
+ glClearColor(1.f, 0.f, 1.f, 1.0f);
+ glClear(GL_COLOR_BUFFER_BIT);
+}