diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-03 19:47:46 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-03 19:48:31 +0000 |
commit | c3eea71370eb94cff1fd96185458643fab6eb2c5 (patch) | |
tree | cb331dd81d9cb36d69e1b659353796ec170a78e4 /gfx/gl/glSource.h | |
parent | Rename Shader to SceneShader (diff) | |
download | ilt-c3eea71370eb94cff1fd96185458643fab6eb2c5.tar.bz2 ilt-c3eea71370eb94cff1fd96185458643fab6eb2c5.tar.xz ilt-c3eea71370eb94cff1fd96185458643fab6eb2c5.zip |
Restructure how shaders are worked with
Needs a tidy-up
Diffstat (limited to 'gfx/gl/glSource.h')
-rw-r--r-- | gfx/gl/glSource.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gfx/gl/glSource.h b/gfx/gl/glSource.h deleted file mode 100644 index c6b1f41..0000000 --- a/gfx/gl/glSource.h +++ /dev/null @@ -1,16 +0,0 @@ -#pragma once - -#include <GL/glew.h> -#include <glRef.hpp> -#include <string_view> - -struct GLsource { - using ShaderRef = glRef<GLuint, &__glewCreateShader, &__glewDeleteShader>; - - const GLchar * text; - GLint len; - GLuint type; - - [[nodiscard]] ShaderRef compile() const; - static void CheckShaderError(GLuint shader, GLuint flag, bool isProgram, std::string_view errorMessage); -}; |