revamped resource system
This commit is contained in:
@@ -15,13 +15,13 @@
|
||||
class ShaderProgram
|
||||
{
|
||||
public:
|
||||
static std::shared_ptr<ShaderProgram> load(std::string_view vertexPath, std::string_view fragmentPath);
|
||||
explicit ShaderProgram(GLuint id) : id(id) {}
|
||||
|
||||
void bind();
|
||||
void unbind();
|
||||
static void unbind();
|
||||
|
||||
void setFloat(std::string_view name, float value) const;
|
||||
void setVec2(std::string_view name, const glm::vec2 &value) const;
|
||||
void setInt(std::string_view name, int value) const;
|
||||
void setVec3(std::string_view name, const glm::vec3 &value) const;
|
||||
void setMat4(std::string_view name, const glm::mat4 &mat) const;
|
||||
void setVec4(std::string_view name, const glm::vec4 &value) const;
|
||||
|
||||
Reference in New Issue
Block a user