Created
October 5, 2014 23:19
-
-
Save terryjsmith/d2f8dc6ac47a5c738313 to your computer and use it in GitHub Desktop.
Evolution ShaderProgram class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ShaderVariable { | |
char* name; | |
int location; | |
bool uniform; | |
ShaderVariable* next; | |
}; | |
class ShaderProgram { | |
public: | |
ShaderProgram(); | |
~ShaderProgram(); | |
public: | |
int uniform(char* name); | |
int attribute(char* name); | |
public: | |
int program; | |
protected: | |
int _var(char* name, bool uniform); | |
ShaderVariable* m_list; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment