Cg OpenGL Runtime API cgGLEnableTextureParameter(3)
NAME
cgGLEnableTextureParameter - enables the texture unit
associated with a texture parameter
SYNOPSIS
#include
void cgGLEnableTextureParameter( CGparameter param );
PARAMETERS
param The texture parameter which will be enabled.
RETURN VALUES
None.
DESCRIPTION
cgGLEnableTextureParameter binds and enables the texture
object associated with param. It must be called after
cgGLSetTextureParameter is called but before the geometry is
drawn.
cgGLDisableTextureParameter should be called once all of the
geometry is drawn to avoid applying the texture to the wrong
geometry and shaders.
EXAMPLES
to-be-written
ERORS
CGINVALIDPROFILEROR is generated if param's profile is
not a supported OpenGL profile. In particular, if param is
not a parameter handle retrieved from a CGprogram but was
instead retrieved from a CGeffect or is a shared parameter
created at runtime, this error will be generated since those
parameters do not have a profile associated with them.
CGINVALIDPARAMHANDLEROR is generated if param is not a
valid parameter.
CGINVALIDPARAMETEREROR is generated if param is not a
texture parameter or if the enable operation fails for any
other reason.
HISTORY
cgGLEnableTextureParameter was introduced in Cg 1.1.
SEE ALSO
cgGLDisableTextureParameter, cgGLSetTextureParameter
Cg Toolkit 2.1 Last change: 1
|