diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-12 15:33:09 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-12 15:48:47 +0000 |
commit | dcdff7828e1dc3b5cbfc10a30ee10c2ffec07987 (patch) | |
tree | f2d0e52661d38f389c8686b7b6fcd5afe4efafe8 /gfx/gl/shader-source.h | |
parent | Move generic constexpr_strlen to lib (diff) | |
download | ilt-dcdff7828e1dc3b5cbfc10a30ee10c2ffec07987.tar.bz2 ilt-dcdff7828e1dc3b5cbfc10a30ee10c2ffec07987.tar.xz ilt-dcdff7828e1dc3b5cbfc10a30ee10c2ffec07987.zip |
Move GL shared source into it's own class/file
Diffstat (limited to 'gfx/gl/shader-source.h')
-rw-r--r-- | gfx/gl/shader-source.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gfx/gl/shader-source.h b/gfx/gl/shader-source.h deleted file mode 100644 index 524025c..0000000 --- a/gfx/gl/shader-source.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef SHADER_SOURCE_H -#define SHADER_SOURCE_H - -#include <GL/glew.h> -#include <glRef.hpp> - -struct GLsource { - using ShaderRef = glRef<GLuint, __glewCreateShader, __glewDeleteShader>; - - const GLchar * text; - GLint len; - GLuint type; - - [[nodiscard]] ShaderRef compile() const; -}; - -#endif |