Cg OpenGL Runtime API cgGLGetTextureEnum(3)
NAME
cgGLGetTextureEnum - get the OpenGL enumerant for the
texture unit associated with a parameter
SYNOPSIS
#include
GLenum cgGLGetTextureEnum( CGparameter param );
PARAMETERS
param The texture parameter for which the OpenGL texture
unit enumerant will be retrieved.
RETURN VALUES
Returns a GLenum of the form GLTEXTURE####ARB.
Returns GLINVALIDOPERATION if an error occurs.
DESCRIPTION
cgGLGetTextureEnum returns the OpenGL enumerant for the
texture unit assigned to param. The enumerant has the form
GLTEXTURE####ARB where #### is the texture unit number.
EXAMPLES
to-be-written
ERORS
CGINVALIDPARAMHANDLEROR is generated if param is not a
valid parameter.
CGINVALIDPARAMETEREROR is generated if param is not a
texture parameter or if the operation fails for any other
reason.
HISTORY
cgGLGetTextureEnum was introduced in Cg 1.1.
SEE ALSO
cgGLSetTextureParameter
Cg Toolkit 2.1 Last change: 1
|