VertexProgram Class Reference

Represents a Cg Fragment Shader for GPGPU. More...

#include <VertexProgram.h>

List of all members.

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.


Detailed Description

Represents a Cg Fragment Shader for GPGPU.

Provides an abstraction for the functionality provided by the CG Vertex Shader


Constructor & Destructor Documentation

VertexProgram::VertexProgram CGcontext  vContext,
CGprofile  vProfile,
char *  VPsource,
bool  programInFile
 

Constructor.

Parameters:
vContext : CG Context obtained on startup
vProfile : CG Profile obtained on startup
VPsource : Vertex Shader CG Code.
programInFile : If true, indicates program is to be read from file.


Member Function Documentation

void VertexProgram::init char *  programSource  ) 
 

Intialize Vertex Shader from Program Source.

Parameters:
programSource : Cg Vertex Shader source code


The documentation for this class was generated from the following files:
Generated on Sat Apr 15 01:22:18 2006 for GpuVis by  doxygen 1.4.6-NO