NAME
cgGLSetTextureParameter - sets the value of texture parameters
SYNOPSIS
#include <Cg/cgGL.h> void cgGLSetTextureParameter(CGparameter param, GLuint texobj);PARAMETERS
- param
Specifies the parameter that will be set.
- texobj
An OpenGL texture object name. This is the value the parameter will be set to.
DESCRIPTION
cgGLSetTextureParameter sets the value of a given texture parameter to a OpenGL texture object.
Note that in order to use the texture, either the "cgGLEnableTextureParameter" document must be called after the "cgGLSetTextureParameter" document and before the geometry is drawn, or the "cgGLSetManageTextureParameters" document must be called with a value of CG_TRUE.
RETURN VALUES
cgGLSetTextureParameter does not return any values.
ERRORS
CG_INVALID_PROFILE_ERROR is generated if param's profile is not a supported OpenGL profile.
CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter handle.
CG_INVALID_PARAMETER_ERROR is generated param is not a texture parameter or if the parameter fails to set for any other reason.
SEE ALSO
the "cgGLGetTextureParameter" document, and the "cgGLSetParameter" document