diff options
Diffstat (limited to 'gfx/gl')
-rw-r--r-- | gfx/gl/program.h | 2 | ||||
-rw-r--r-- | gfx/gl/shader.h | 4 | ||||
-rw-r--r-- | gfx/gl/uiShader.h | 2 | ||||
-rw-r--r-- | gfx/gl/vertexArrayObject.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/gfx/gl/program.h b/gfx/gl/program.h index 2708ff0..76b6742 100644 --- a/gfx/gl/program.h +++ b/gfx/gl/program.h @@ -1,8 +1,8 @@ #pragma once #include "shader.h" -#include <GL/glew.h> #include <glRef.h> +#include <glad/gl.h> #include <glm/mat4x4.hpp> #include <special_members.h> 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; diff --git a/gfx/gl/uiShader.h b/gfx/gl/uiShader.h index 054c944..2766af8 100644 --- a/gfx/gl/uiShader.h +++ b/gfx/gl/uiShader.h @@ -1,8 +1,8 @@ #pragma once #include "program.h" -#include <GL/glew.h> #include <cstddef> +#include <glad/gl.h> #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> diff --git a/gfx/gl/vertexArrayObject.h b/gfx/gl/vertexArrayObject.h index 1d27588..fa6baa3 100644 --- a/gfx/gl/vertexArrayObject.h +++ b/gfx/gl/vertexArrayObject.h @@ -3,7 +3,7 @@ #include "collections.h" #include "gl_traits.h" #include "special_members.h" -#include <GL/glew.h> +#include <glad/gl.h> class VertexArrayObject { public: |