summaryrefslogtreecommitdiff
path: root/src/render/gl.h
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-11-28 14:41:22 +0100
committerGitHub <noreply@github.com>2025-11-28 14:41:22 +0100
commit9c05c795d7b59c5ab94fb769f315c712b37df0cd (patch)
tree16cccf8cbb88703de798066a06f94013f89a8a5a /src/render/gl.h
parentf8b92ce3aa08b1445c9f956d8166830946562d12 (diff)
parent3e094f20d4dda90e0356aba3f0abc4b7c7015844 (diff)
Merge pull request #1 from navewindre/windows-compat
Windows compat
Diffstat (limited to 'src/render/gl.h')
-rw-r--r--src/render/gl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/render/gl.h b/src/render/gl.h
index cf2b5dd..e4e2d5a 100644
--- a/src/render/gl.h
+++ b/src/render/gl.h
@@ -1,7 +1,8 @@
#pragma once
#include <SDL.h>
-#include <GLES2/gl2.h>
+// #include <GLES2/gl2.h>
+#include <GL/glew.h>
#include "../util.h"
#include "../util/matrix.h"
@@ -68,6 +69,8 @@ typedef struct GL_DATA {
VEC2 viewport_dim;
MAT4* proj_matrix;
+
+ GLuint vao;
} *PGL_DATA;
GL_DATA* gl_instance();