iso::gl::Program Class Reference

#include <iso_gl_program.h>

List of all members.

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


Constructor & Destructor Documentation

Program::Program (  )  throw (GLException)

default constructor

Program::~Program (  ) 

destructor


Member Function Documentation

bool iso::gl::Program::linked (  )  const [inline]

void Program::link (  )  throw (GLException)

link program

GLuint Program::id (  )  const

return program id

Returns:
program id

GLuint Program::variableLocation ( const base::String &  pVariableName  )  throw (GLException)

return variable location

Parameters:
pVariableName name of variable
Returns:
variable location

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

Returns:
true if shader is already attached to this program, false otherwise

void Program::attachShader ( Shader pShader  )  throw (GLException)

attach shader to program

Parameters:
pShader shader

void Program::detachShader ( Shader pShader  )  throw (GLException)

detach shader from program

Parameters:
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


Member Data Documentation

bool iso::gl::Program::mLinked [protected]

GLuint iso::gl::Program::mId [protected]


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