summaryrefslogtreecommitdiff
path: root/gfx/gl/shader.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shader.h')
-rw-r--r--gfx/gl/shader.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gfx/gl/shader.h b/gfx/gl/shader.h
index 1e4a2ee..ce97734 100644
--- a/gfx/gl/shader.h
+++ b/gfx/gl/shader.h
@@ -7,6 +7,7 @@
class Shader {
public:
+ using Source = std::basic_string_view<GLchar>;
using ShaderRef = glRef<GLuint, &glCreateShader, &glDeleteShader>;
constexpr Shader(const GLchar * text, GLuint type) :
@@ -16,10 +17,11 @@ public:
[[nodiscard]] ShaderRef compile() const;
+ [[nodiscard]] static GLint getShaderParam(GLuint shader, GLenum pname);
+
private:
- using Source = std::basic_string_view<GLchar>;
+ void checkShaderError(GLuint shader) const;
- void checkShaderError(GLuint shader, GLuint flag, std::string_view errorMessage) const;
const Source text;
GLuint type;
bool lookups;