Initialize Cg after creating OpenGL context by calling cyCgCreate function.
|
Namespaces |
| namespace | cy |
Classes |
| struct | cyCgContext |
| | Keeps the Cg context and profiles. More...
|
| class | cyCgBaseProgram |
| | Base class for Cg programs classes. More...
|
| class | cyCgProgramContainer |
| | Multiple versions of the same Cg program. More...
|
| class | CgProgramContainer |
Typedefs |
typedef cyCgProgramContainer<
cyCgBaseProgram > | cyCgBaseProgramContainer |
| | List of cyCgBaseProgram.
|
|
typedef cyCgContext | cy::CgContext |
|
typedef cyCgBaseProgram | cy::CgBaseProgram |
|
typedef cyCgBaseProgramContainer | cy::CgBaseProgramContainer |
Functions |
|
void | cyCgErrorCallback () |
| | When there is an error, this function will print out an error message and exit.
|
|
void | cyCgCreate () |
| | Call this function once after you create the OpenGL context to initialize Cg.
|
|
void | cyCgEnableVP () |
| | Enables Cg vertex program.
|
|
void | cyCgEnableFP () |
| | Enables Cg fragment program.
|
|
void | cyCgEnable () |
| | Enables both vertex and fragment programs.
|
|
void | cyCgDisableVP () |
| | Disables Cg vertex program.
|
|
void | cyCgDisableFP () |
| | Disables Cg fragment program.
|
|
void | cyCgDisable () |
| | Disables both vertex and fragment programs.
|
|
CGcontext | cyCgGetContext () |
| | Returns the Cg context.
|
|
CGprofile | cyCgGetVertexProfile () |
| | Returns the Cg vertex profile.
|
|
CGprofile | cyCgGetFragmentProfile () |
| | Returns the Cg fragment profile.
|
Variables |
| cyCgContext | CG |
| | Add the following line into a source file.
|
|
static void(* | cy::CgCreate )() = cyCgCreate |
|
static void(* | cy::CgEnableVP )() = cyCgEnableVP |
|
static void(* | cy::CgEnableFP )() = cyCgEnableFP |
|
static void(* | cy::CgEnable )() = cyCgEnable |
|
static void(* | cy::CgDisableVP )() = cyCgDisableVP |
|
static void(* | cy::CgDisableFP )() = cyCgDisableFP |
|
static void(* | cy::CgDisable )() = cyCgDisable |
|
static CGcontext(* | cy::CgGetContext )() = cyCgGetContext |
|
static CGprofile(* | cy::CgGetVertexProfile )() = cyCgGetVertexProfile |
|
static CGprofile(* | cy::CgGetFragmentProfile )() = cyCgGetFragmentProfile |