1#ifndef OPENGLSHADER_HPP_
2#define OPENGLSHADER_HPP_
17 bool compile(
const std::string& shaderPath)
override;
19 bool compile(
const std::string& vert,
const std::string& frag)
override;
26 bool CompileShaderSource(
const std::string& source, GLenum type,
28 std::string ReadFile(
const std::string& path);
GLuint GetProgram() const
void bind() override
Binds this program as the active shader for subsequent draws.
bool compile(const std::string &shaderPath) override
Splits a combined shader file into vertex/fragment stages and links them.
Backend-agnostic compiled shader program.
Backend-facing rendering layer shared by the four graphics backends.
Root namespace for everything the engine exposes.