summaryrefslogtreecommitdiff
path: root/gfx/gl/programHandle.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-12 16:07:41 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-12 16:07:41 +0000
commit6698c81d0628e917beb75f71383e3b3108b0804c (patch)
tree987fc520c7386831300e70e0ffeb466dbd38932e /gfx/gl/programHandle.h
parentSplit 3D specifics of programs out of a base class (diff)
downloadilt-6698c81d0628e917beb75f71383e3b3108b0804c.tar.bz2
ilt-6698c81d0628e917beb75f71383e3b3108b0804c.tar.xz
ilt-6698c81d0628e917beb75f71383e3b3108b0804c.zip
Move program handle to its own files
Diffstat (limited to 'gfx/gl/programHandle.h')
-rw-r--r--gfx/gl/programHandle.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gfx/gl/programHandle.h b/gfx/gl/programHandle.h
new file mode 100644
index 0000000..6aa1084
--- /dev/null
+++ b/gfx/gl/programHandle.h
@@ -0,0 +1,16 @@
+#ifndef PROGRAM_HANDLE_H
+#define PROGRAM_HANDLE_H
+
+#include <GL/glew.h>
+#include <glRef.hpp>
+
+class ProgramHandleBase {
+public:
+ ProgramHandleBase(GLuint, GLuint);
+ using ProgramRef = glRef<GLuint, __glewCreateProgram, __glewDeleteProgram>;
+
+ ProgramRef m_program;
+ GLint viewProjection_uniform, model_uniform;
+};
+
+#endif