Skip to content

Instantly share code, notes, and snippets.

@terryjsmith
Created October 5, 2014 23:19
Show Gist options
  • Save terryjsmith/d2f8dc6ac47a5c738313 to your computer and use it in GitHub Desktop.
Save terryjsmith/d2f8dc6ac47a5c738313 to your computer and use it in GitHub Desktop.
Evolution ShaderProgram class
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