Patate Lib  0.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
PatateCommon::Shader Class Reference

Public Types

enum  Status { UNINITIALIZED, NOT_COMPILED, COMPILATION_SUCCESSFULL, COMPILATION_FAILED }
 

Public Member Functions

bool create ()
 
void destroy ()
 
void use ()
 
Status status () const
 
void setGLSLVersionHeader (const std::string &header)
 
bool addShaderFromFile (GLenum _ShaderType, const char *_pFilename)
 
bool addShader (GLenum _ShaderType, const char *_pShaderText)
 
void clearShaderList ()
 
bool finalize ()
 
GLuint getShaderId ()
 
void bindAttributeLocation (const char *name, unsigned location)
 
GLint getUniformLocation (const char *_pUniformName)
 
GLint getProgramParam (GLint _param)
 

Protected Attributes

GLuint m_shaderProg