#include <VertexProgram.h>
Public Member Functions | |
VertexProgram (CGcontext fContext, CGprofile fProfile) | |
Constructor;. | |
~VertexProgram () | |
Destructor. | |
VertexProgram (CGcontext vContext, CGprofile vProfile, char *VPname, bool programInFile) | |
Constructor. | |
void | init (char *programSource) |
Intialize Vertex Shader from Program Source. | |
void | activate () |
Activate the Vertex Shader. | |
void | setMatrices () |
Setup the Matrices to be passed to Vertex Shader. | |
void | deactivate () |
Deactivate the Vertex Shader. | |
Public Attributes | |
CGprogram | _VP |
The Vertex Program. | |
Protected Attributes | |
bool | _running |
Flag indicates program state. | |
CGprofile | _VPprofile |
Cg Vertex Shader Profile. | |
CGcontext | _VPcontext |
Cg Shader Context. | |
CGparameter | _VPmodelViewMatrix |
Cg Parameters. |
Provides an abstraction for the functionality provided by the CG Vertex Shader
|
Constructor.
|
|
Intialize Vertex Shader from Program Source.
|