summaryrefslogtreecommitdiff
path: root/gfx/gl/shader.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-05-28 11:45:22 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-05-28 11:45:22 +0100
commitfdea7529ba09a615d92da5823429b49c7e565c9d (patch)
tree67b12689c60dc2e75a5587988dd11bf36c12da9a /gfx/gl/shader.h
parentMark main rule as always, so we can always launch it (diff)
parentSwap GLEW for more modern glad (diff)
downloadilt-fdea7529ba09a615d92da5823429b49c7e565c9d.tar.bz2
ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.tar.xz
ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.zip
Merge branch 'glad'
Diffstat (limited to 'gfx/gl/shader.h')
-rw-r--r--gfx/gl/shader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/shader.h b/gfx/gl/shader.h
index cb8065b..0810e6b 100644
--- a/gfx/gl/shader.h
+++ b/gfx/gl/shader.h
@@ -1,13 +1,13 @@
#pragma once
-#include <GL/glew.h>
#include <glRef.h>
+#include <glad/gl.h>
#include <optional>
#include <string_view>
class Shader {
public:
- using ShaderRef = glRef<GLuint, &__glewCreateShader, &__glewDeleteShader>;
+ using ShaderRef = glRef<GLuint, &glCreateShader, &glDeleteShader>;
constexpr Shader(const GLchar * text, GLint len, GLuint type) : text {text}, len {len}, type {type} { }
[[nodiscard]] ShaderRef compile() const;