From b95cf46bed86e4d0641f7862cfe550af2bc02d60 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 20 Feb 2021 13:48:31 +0000 Subject: Remove now redundent Shader::Source class Moves compile functionality to GLsource. --- gfx/gl/shader-source.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gfx/gl/shader-source.h') diff --git a/gfx/gl/shader-source.h b/gfx/gl/shader-source.h index 4fbbe5b..9403e80 100644 --- a/gfx/gl/shader-source.h +++ b/gfx/gl/shader-source.h @@ -2,11 +2,16 @@ #define SHADER_SOURCE_H #include +#include struct GLsource { + using ShaderRef = glRef; + const GLchar * text; GLint len; GLuint type; + + [[nodiscard]] ShaderRef compile() const; }; constexpr auto -- cgit v1.2.3