Cg OpenGL Runtime API cgGLSetTextureParameter(3)
NAME
cgGLSetTextureParameter - sets the value of a texture
parameter
SYNOPSIS
#include
void cgGLSetTextureParameter( CGparameter param,
GLuint texobj );
PARAMETERS
param The texture parameter that will be set.
texobj An OpenGL texture object name to which the parameter
will be set.
RETURN VALUES
None.
DESCRIPTION
cgGLSetTextureParameter sets the value of a texture
parameter to an OpenGL texture object.
Note that in order to use the texture, either
cgGLEnableTextureParameter must be called after
cgGLSetTextureParameter and before the geometry is drawn, or
cgGLSetManageTextureParameters must be called with a value
of CGTRUE.
EXAMPLES
to-be-written
ERORS
CGINVALIDPROFILEROR is generated if param's profile is
not a supported OpenGL profile.
CGINVALIDPARAMHANDLEROR is generated if param is not a
valid parameter.
CGINVALIDPARAMETEREROR is generated if param is not a
texture parameter or if the parameter fails to set for any
other reason.
HISTORY
cgGLSetTextureParameter was introduced in Cg 1.1.
SEE ALSO
cgGLGetTextureParameter, cgGLSetParameter
Cg Toolkit 2.1 Last change: 1
|