diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-20 13:38:38 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-20 13:38:38 +0000 |
commit | 50089bf9969edb5f10ff552b90620a4882e3c474 (patch) | |
tree | 4742cf02f21bdfd2c8a7b58c8726734b8ce7aeb0 /gfx/gl/shader.h | |
parent | Pass a cppcheck (diff) | |
download | ilt-50089bf9969edb5f10ff552b90620a4882e3c474.tar.bz2 ilt-50089bf9969edb5f10ff552b90620a4882e3c474.tar.xz ilt-50089bf9969edb5f10ff552b90620a4882e3c474.zip |
m4 based GLSL embedding
Passes a lint check, less mangling, more automation
Diffstat (limited to 'gfx/gl/shader.h')
-rw-r--r-- | gfx/gl/shader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gfx/gl/shader.h b/gfx/gl/shader.h index 47a2b7d..293ce9b 100644 --- a/gfx/gl/shader.h +++ b/gfx/gl/shader.h @@ -1,6 +1,7 @@ #ifndef SHADER_INCLUDED_H
#define SHADER_INCLUDED_H
+#include "shader-source.h"
#include <GL/glew.h>
#include <array>
#include <glRef.hpp>
@@ -22,8 +23,7 @@ private: public:
using ShaderRef = glRef<GLuint, __glewCreateShader, __glewDeleteShader>;
- Source(const std::basic_string_view<unsigned char> text, GLuint type);
- Source(const GLchar * text, GLint len, GLuint type);
+ explicit Source(const GLsource src);
ShaderRef id;
};
@@ -32,7 +32,7 @@ private: class ProgramHandle {
public:
- explicit ProgramHandle(std::initializer_list<GLuint>);
+ ProgramHandle(GLuint, GLuint);
using ProgramRef = glRef<GLuint, __glewCreateProgram, __glewDeleteProgram>;
ProgramRef m_program;
|