#ifndef SHADER_SOURCE_H #define SHADER_SOURCE_H #include #include struct GLsource { using ShaderRef = glRef; const GLchar * text; GLint len; GLuint type; [[nodiscard]] ShaderRef compile() const; }; constexpr auto constexpr_strlen(const GLchar * const s) { auto e {s}; while (*++e) { } return e - s; } #endif