#include <shader.hh>
Public Member Functions | |
void | PreGLInit () |
void | Setup () |
void | Activate (const String &name) |
bool | IsValid () const |
bool | IsActive () const |
GLuint | GetCurrentProgram () const |
String | GetCurrentName () const |
void | PushProgram () |
void | PopProgram () |
void | UpdateState () |
void | Link (const std::string &pr_name, const std::string &vs_code, const std::string &fs_code) |
Static Public Member Functions | |
static Shader & | Instance () |
static bool | Compile (const std::string &shader_name, const std::string &shader_code, GLenum shader_type, GLuint &shader_id) |
Definition at line 38 of file shader.hh.
void Activate | ( | const String & | name | ) |
static bool Compile | ( | const std::string & | shader_name, | |
const std::string & | shader_code, | |||
GLenum | shader_type, | |||
GLuint & | shader_id | |||
) | [static] |
String GetCurrentName | ( | ) | const |
GLuint GetCurrentProgram | ( | ) | const |
static Shader& Instance | ( | ) | [static] |
bool IsActive | ( | ) | const |
bool IsValid | ( | ) | const |
void Link | ( | const std::string & | pr_name, | |
const std::string & | vs_code, | |||
const std::string & | fs_code | |||
) |
void PopProgram | ( | ) |
void PreGLInit | ( | ) |
void PushProgram | ( | ) |
void Setup | ( | ) |
void UpdateState | ( | ) |