| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/vertexprogramnv.h>

Public Member Functions | |
| VertexProgramNV (const char *program="", Callback *configure=NULL, Callback *cleanUp=NULL) | |
| void | setProgram (const char *program) |
| const char * | getProgram () const |
| void | setConfigureCallback (Callback *configure) |
| Callback * | getConfigureCallback () const |
| void | setCleanUpCallback (Callback *cleanup) |
| Callback * | getCleanUpCallback () const |
| Callbacks are also used to clean up vertex program parameter. | |
| void | setMatrixTracking (GLenum matrix, GLenum transform, unsigned int targetRegister) |
| Iterator< MatrixTracking * > * | matrixTracking () const |
| Accessing matrix trackings. | |
| void | setVertexParameter (double x, double y, double z, double w, unsigned int targetRegister) |
| Iterator< VertexParameter * > * | vertexParameter () const |
| Accessing uniform vertex parameter. | |
| VRS_TYPEINFO (VertexProgramNV, MonoAttribute) | |
| VRS_SERIALIZABLE (VertexProgramNV) | |
Friends | |
| class | VertexProgramPainterNV |
Classes | |
| struct | MatrixTracking |
| struct | VertexParameter |
| VRS::VertexProgramNV::VertexProgramNV | ( | const char * | program = "", |
|
| Callback * | configure = NULL, |
|||
| Callback * | cleanUp = NULL | |||
| ) |
Vertex programs are specified by a script. Furthermore, one can provide uniform vertex program parameter within a callback to configure vertex program evaluation. To clean up vertex program parameter one can either provide a second callback or let them all reset at ones if no callback is registered. Alternatively and perhaps more conveniently, uniform vertex parameter and matrix tracking can be set directly, too.
| void VRS::VertexProgramNV::setProgram | ( | const char * | program | ) |
| const char* VRS::VertexProgramNV::getProgram | ( | ) | const |
The vertex program is given by a script.
| void VRS::VertexProgramNV::setConfigureCallback | ( | Callback * | configure | ) |
| Callback * VRS::VertexProgramNV::getConfigureCallback | ( | ) | const [inline] |
Callbacks provide vertex program parameter to configure vertex program evaluation.
| void VRS::VertexProgramNV::setCleanUpCallback | ( | Callback * | cleanup | ) |
| Callback * VRS::VertexProgramNV::getCleanUpCallback | ( | ) | const [inline] |
Callbacks are also used to clean up vertex program parameter.
| void VRS::VertexProgramNV::setMatrixTracking | ( | GLenum | matrix, | |
| GLenum | transform, | |||
| unsigned int | targetRegister | |||
| ) |
Defines matrix tracking to be used with vertex programs. The dedicated register will be used for matrix tracking. Note: No check on correctness due to the register chosen will be performed.
| Iterator<MatrixTracking*>* VRS::VertexProgramNV::matrixTracking | ( | ) | const |
Accessing matrix trackings.
| void VRS::VertexProgramNV::setVertexParameter | ( | double | x, | |
| double | y, | |||
| double | z, | |||
| double | w, | |||
| unsigned int | targetRegister | |||
| ) |
Defines uniform vertex parameter to be used with vertex programs. Uniform variables will be shifted to the dedicated register. Note: No check on correctness due to the register chosen will be performed.
| Iterator<VertexParameter*>* VRS::VertexProgramNV::vertexParameter | ( | ) | const |
Accessing uniform vertex parameter.
| VRS::VertexProgramNV::VRS_TYPEINFO | ( | VertexProgramNV | , | |
| MonoAttribute | ||||
| ) |
| VRS::VertexProgramNV::VRS_SERIALIZABLE | ( | VertexProgramNV | ) |
friend class VertexProgramPainterNV [friend] |