#include <CgContext.h>
Public Member Functions | |
CGcontext | getContext () const |
bool | good () const |
void | enableProfile (CGprofile profile) const |
void | disableProfile (CGprofile profile) const |
bool | hasError () const |
std::string | getError () const |
CGprofile | getFragmentShader () const |
CGprofile | getVertexShader () const |
std::string | getCgProgramPath () const |
GLenum | getTexRectTarget () const |
GLint | getTexRectInternalFormat () const |
GLenum | getTex2dTarget () const |
GLint | getTex2dInternalFormat () const |
Static Public Member Functions | |
static CgContext & | getInstance () |
|
Disables the given Cg profile.
|
|
Enables the given Cg profile. This profile is then used by Cg programs executed afterwards.
|
|
Returns the path where the Cg program files are stored.
|
|
Returns the valid Cg context.
|
|
Returns a textual description of the latest error. Returns an empty string if no error has occured.
|
|
Returns the Cg profile used for fragment shaders (Cg programs).
|
|
Returns the single CgContext instance. An instance is initialized if not already existing.
|
|
Returns the internal format used for sampler2D textures. The internal format specifies the number of channels and the type and precision of each channel.
|
|
Returns the texture target used for sampler2D textures. The texture target defines how the texture image is specified and accessed via a set of texture coordinates.
|
|
Returns the internal format used for samplerRECT textures. The internal format specifies the number of channels and the type and precision of each channel.
|
|
Returns the texture target used for samplerRECT textures. The texture target defines how the texture image is specified and accessed via a set of texture coordinates.
|
|
Returns the Cg profile used for vertex shaders (Cg programs).
|
|
Returns whether the Cg context was successfully initialized.
|
|
Returns whether the CgContext has an error.
|