#include <iso_glsl.h>
Collaboration diagram for iso::gl::GLSL:
Public Member Functions | |
void | version (int &pMajor, int &pMinor) throw (GLException) |
obtain OpenGL version | |
void | registerShader (Shader &pShader) |
register a shader | |
void | registerProgram (Program &pProgram) |
register a program | |
void | printShaderInfoLog (GLuint pShaderId) |
print shader info log | |
void | printProgramInfoLog (GLuint pProgramId) |
print program info log | |
Static Public Member Functions | |
static GLSL & | get () |
return singleton instance | |
static void | destroy () |
destroy singleton instance | |
Protected Member Functions | |
GLSL () | |
singleton instance | |
~GLSL () | |
destructor | |
Protected Attributes | |
QHash< GLuint, Shader * > | mShaders |
shader registry | |
QHash< GLuint, Program * > | mPrograms |
program registry | |
Static Protected Attributes | |
static GLSL * | sGLSL |
GLSL::GLSL | ( | ) | [protected] |
singleton instance
/brief default constructor
GLSL::~GLSL | ( | ) | [protected] |
destructor
GLSL & GLSL::get | ( | ) | [static] |
return singleton instance
void GLSL::destroy | ( | ) | [static] |
destroy singleton instance
void GLSL::version | ( | int & | pMajor, | |
int & | pMinor | |||
) | throw (GLException) |
obtain OpenGL version
pMajor | major version number | |
pMinor | minor version number |
void GLSL::registerShader | ( | Shader & | pShader | ) |
register a shader
pShader | shader |
void GLSL::registerProgram | ( | Program & | pProgram | ) |
register a program
pProgram | program |
void GLSL::printShaderInfoLog | ( | GLuint | pShaderId | ) |
print shader info log
pShaderId | shader id |
void GLSL::printProgramInfoLog | ( | GLuint | pProgramId | ) |
print program info log
pProgramId | shader id |
GLSL * GLSL::sGLSL [static, protected] |
QHash< GLuint, Shader* > iso::gl::GLSL::mShaders [protected] |
shader registry
QHash< GLuint, Program* > iso::gl::GLSL::mPrograms [protected] |
program registry