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

Specifies the texture parameter.

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.

RETURN VALUES

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

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.

SEE ALSO

cgGLSetTextureParameter