NAME

cgGLGetTextureEnum - returns the GL enumerant for the texture unit associated with a parameter

SYNOPSIS

  #include <Cg/cgGL.h>

  GLenum cgGLGetTextureEnum( CGparameter param );

PARAMETERS

param

The texture parameter.

RETURN VALUES

cgGLGetTextureEnum returns a GLenum of the form GL_TEXTURE#_ARB. If param is not a texture parameter GL_INVALID_OPERATION is returned.

DESCRIPTION

cgGLGetTextureEnum returns the OpenGL enumerant for the texture unit assigned to param. The enumerant has the form GL_TEXTURE#_ARB where # is the texture unit number.

EXAMPLES

to-be-written

ERRORS

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.

HISTORY

cgGLGetTextureEnum was introduced in Cg 1.1.

SEE ALSO

cgGLSetTextureParameter