#include <FragmentProgram.h>
Public Member Functions | |
FragmentProgram (CGcontext fContext, CGprofile fProfile) | |
Constructor 1. | |
FragmentProgram (CGcontext fContext, CGprofile fProfile, char *FPname, GLuint texName, bool programInFile) | |
Constructor 2. | |
~FragmentProgram () | |
Destructor. | |
void | init (char *programSource) |
Initialize Shader from program source. | |
void | activate () |
Activate the Shader. | |
void | bindTexture (GLuint texID) |
Bind Input Texture. | |
void | bind () |
Bind the Shader. | |
void | deactivate () |
Deactivate the Shader. | |
void | getKernelParams () |
Get Handle for parameters. | |
void | setParams (int n, float *kernel1, float *kernel2, float offset) |
Set the parameters. | |
Public Attributes | |
CGprogram | _FP |
The Fragment Program. | |
CGparameter | _FPtexture1 |
Some more CG parameters handles. | |
CGparameter | _FPtexture2 |
Some more CG Parameter handles. | |
Protected Attributes | |
bool | _running |
Flag indicates program state. | |
CGparameter | _FPoffset |
CG Parameter Handles used by different fragment shaders. | |
CGprofile | _FPprofile |
CG Fragment Program Profile. | |
CGcontext | _FPcontext |
CG Program Context. | |
GLuint | _inputTextureID |
Current Input Texture Id. |
Provides an abstraction for the functionality provided by the CG Fragment Shader
|
Constructor 2.
|
|
Bind Input Texture.
|
|
Initialize Shader from program source.
|
|
Set the parameters.
|