diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-12 16:07:41 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-12 16:07:41 +0000 |
commit | 6698c81d0628e917beb75f71383e3b3108b0804c (patch) | |
tree | 987fc520c7386831300e70e0ffeb466dbd38932e /gfx/gl/shader.h | |
parent | Split 3D specifics of programs out of a base class (diff) | |
download | ilt-6698c81d0628e917beb75f71383e3b3108b0804c.tar.bz2 ilt-6698c81d0628e917beb75f71383e3b3108b0804c.tar.xz ilt-6698c81d0628e917beb75f71383e3b3108b0804c.zip |
Move program handle to its own files
Diffstat (limited to 'gfx/gl/shader.h')
-rw-r--r-- | gfx/gl/shader.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gfx/gl/shader.h b/gfx/gl/shader.h index 5b3aab8..249b2f4 100644 --- a/gfx/gl/shader.h +++ b/gfx/gl/shader.h @@ -1,6 +1,7 @@ #ifndef SHADER_INCLUDED_H
#define SHADER_INCLUDED_H
+#include "programHandle.h"
#include <GL/glew.h>
#include <array>
#include <glRef.hpp>
@@ -9,15 +10,6 @@ class Location;
-class ProgramHandleBase {
-public:
- ProgramHandleBase(GLuint, GLuint);
- using ProgramRef = glRef<GLuint, __glewCreateProgram, __glewDeleteProgram>;
-
- ProgramRef m_program;
- GLint viewProjection_uniform, model_uniform;
-};
-
class Shader {
public:
enum class Program { Basic = 0, Water = 1, LandMass = 2, StaticPos = 3 };
|