iso::gl::GLSL Class Reference

#include <iso_glsl.h>

Collaboration diagram for iso::gl::GLSL:

Collaboration graph
[legend]
List of all members.

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 GLSLget ()
 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 GLSLsGLSL

Constructor & Destructor Documentation

GLSL::GLSL (  )  [protected]

singleton instance

/brief default constructor

GLSL::~GLSL (  )  [protected]

destructor


Member Function Documentation

GLSL & GLSL::get (  )  [static]

return singleton instance

Returns:
singleton instance

void GLSL::destroy (  )  [static]

destroy singleton instance

void GLSL::version ( int &  pMajor,
int &  pMinor 
) throw (GLException)

obtain OpenGL version

Parameters:
pMajor major version number
pMinor minor version number

void GLSL::registerShader ( Shader pShader  ) 

register a shader

Parameters:
pShader shader

void GLSL::registerProgram ( Program pProgram  ) 

register a program

Parameters:
pProgram program

void GLSL::printShaderInfoLog ( GLuint  pShaderId  ) 

print shader info log

Parameters:
pShaderId shader id

void GLSL::printProgramInfoLog ( GLuint  pProgramId  ) 

print program info log

Parameters:
pProgramId shader id


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:01:56 2011 for iso_gl by  doxygen 1.5.1