summaryrefslogtreecommitdiff
path: root/gfx/gl/shader.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-05-28 11:45:01 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-05-28 11:45:01 +0100
commit3c1c392ab177566f09d11a380210e1937741fad2 (patch)
tree67b12689c60dc2e75a5587988dd11bf36c12da9a /gfx/gl/shader.h
parentAdd glad submodule and build a glad library (diff)
downloadilt-3c1c392ab177566f09d11a380210e1937741fad2.tar.bz2
ilt-3c1c392ab177566f09d11a380210e1937741fad2.tar.xz
ilt-3c1c392ab177566f09d11a380210e1937741fad2.zip
Swap GLEW for more modern 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;