#include <iso_gl_program.h>
Public Member Functions | |
Program () throw (GLException) | |
default constructor | |
~Program () | |
destructor | |
bool | linked () const |
void | link () throw (GLException) |
link program | |
GLuint | id () const |
return program id | |
GLuint | variableLocation (const base::String &pVariableName) throw (GLException) |
return variable location | |
GLuint | attributeLocation (const base::String &pAttributeName) throw (GLException) |
void | setVariable (const base::String &pVariableName, int pValue) throw (GLException) |
void | setVariable (const base::String &pVariableName, int pValue1, int pValue2) throw (GLException) |
void | setVariable (const base::String &pVariableName, int pValue1, int pValue2, int pValue3) throw (GLException) |
void | setVariable (const base::String &pVariableName, int pValue1, int pValue2, int pValue3, int pValue4) throw (GLException) |
void | setVariable (const base::String &pVariableName, float pValue) throw (GLException) |
void | setVariable (const base::String &pVariableName, float pValue1, float pValue2) throw (GLException) |
void | setVariable (const base::String &pVariableName, float pValue1, float pValue2, float pValue3) throw (GLException) |
void | setVariable (const base::String &pVariableName, float pValue1, float pValue2, float pValue3, float pValue4) throw (GLException) |
void | setMatrix (const base::String &pMatrixName, int pSize, float *pMatrixValues) throw (GLException) |
void | setMatrix (const base::String &pMatrixname, int pSize1, int pSize2, float *pMatrixValues) throw (GLException) |
void | setTexture (const base::String &pTextureName, Texture &pTexture, GLuint pTextureUnit) throw (GLException) |
void | setAttribute (const base::String &pBufferObjectName, const BufferObject *pBufferObject) throw (GLException) |
bool | checkShader (Shader &pShader) |
check if shader is attached to this program | |
void | attachShader (Shader &pShader) throw (GLException) |
attach shader to program | |
void | detachShader (Shader &pShader) throw (GLException) |
detach shader from program | |
void | enable () |
enable program | |
void | disable () |
disable program | |
void | destroy () |
delete program | |
void | printInfoLog () const |
print shader info log | |
Protected Attributes | |
bool | mLinked |
GLuint | mId |
Program::Program | ( | ) | throw (GLException) |
default constructor
Program::~Program | ( | ) |
destructor
bool iso::gl::Program::linked | ( | ) | const [inline] |
void Program::link | ( | ) | throw (GLException) |
link program
GLuint Program::id | ( | ) | const |
return program id
GLuint Program::variableLocation | ( | const base::String & | pVariableName | ) | throw (GLException) |
return variable location
pVariableName | name of variable |
GLuint Program::attributeLocation | ( | const base::String & | pAttributeName | ) | throw (GLException) |
void Program::setVariable | ( | const base::String & | pVariableName, | |
int | pValue | |||
) | throw (GLException) |
void Program::setVariable | ( | const base::String & | pVariableName, | |
int | pValue1, | |||
int | pValue2 | |||
) | throw (GLException) |
void Program::setVariable | ( | const base::String & | pVariableName, | |
int | pValue1, | |||
int | pValue2, | |||
int | pValue3 | |||
) | throw (GLException) |
void Program::setVariable | ( | const base::String & | pVariableName, | |
int | pValue1, | |||
int | pValue2, | |||
int | pValue3, | |||
int | pValue4 | |||
) | throw (GLException) |
void Program::setVariable | ( | const base::String & | pVariableName, | |
float | pValue | |||
) | throw (GLException) |
void Program::setVariable | ( | const base::String & | pVariableName, | |
float | pValue1, | |||
float | pValue2 | |||
) | throw (GLException) |
void Program::setVariable | ( | const base::String & | pVariableName, | |
float | pValue1, | |||
float | pValue2, | |||
float | pValue3 | |||
) | throw (GLException) |
void Program::setVariable | ( | const base::String & | pVariableName, | |
float | pValue1, | |||
float | pValue2, | |||
float | pValue3, | |||
float | pValue4 | |||
) | throw (GLException) |
void Program::setMatrix | ( | const base::String & | pMatrixName, | |
int | pSize, | |||
float * | pMatrixValues | |||
) | throw (GLException) |
void Program::setMatrix | ( | const base::String & | pMatrixname, | |
int | pSize1, | |||
int | pSize2, | |||
float * | pMatrixValues | |||
) | throw (GLException) |
void Program::setTexture | ( | const base::String & | pTextureName, | |
Texture & | pTexture, | |||
GLuint | pTextureUnit | |||
) | throw (GLException) |
void Program::setAttribute | ( | const base::String & | pBufferObjectName, | |
const BufferObject * | pBufferObject | |||
) | throw (GLException) |
bool Program::checkShader | ( | Shader & | pShader | ) |
check if shader is attached to this program
void Program::attachShader | ( | Shader & | pShader | ) | throw (GLException) |
attach shader to program
pShader | shader |
void Program::detachShader | ( | Shader & | pShader | ) | throw (GLException) |
detach shader from program
pShader | shader |
void Program::enable | ( | ) |
enable program
void Program::disable | ( | ) |
disable program
void Program::destroy | ( | ) |
delete program
void Program::printInfoLog | ( | ) | const |
print shader info log
bool iso::gl::Program::mLinked [protected] |
GLuint iso::gl::Program::mId [protected] |