Skip to content
Snippets Groups Projects
Commit 929e2a08 authored by Pascal Engeler's avatar Pascal Engeler
Browse files

Added unuse(), identity check

parent 95123461
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,9 @@ public:
void clean_up(){glDeleteShader(ID);}
// use/activate the shader
void use();
void unuse();
// check identity of shader
bool is(const std::string vertexPath, const std::string fragmentPath) const;
// utility uniform functions
void setBool(const std::string &name, bool value) const;
void setInt(const std::string &name, int value) const;
......@@ -31,6 +34,10 @@ public:
//TODO: make this private
unsigned int ID; //shader program ID
private:
std::string _vertexPath;
std::string _fragmentPath;
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment