cgGLGetTextureEnum

Langue: en

Version: 46863 (openSuse - 09/10/07)

Section: 3 (Bibliothèques de fonctions)

NAME

cgGLGetTextureEnum - get the OpenGL enumerant for the texture unit associated with a parameter

SYNOPSIS


  #include <Cg/cgGL.h>






  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 GL_TEXTURE#_ARB.

Returns GL_INVALID_OPERATION if an error occurs.

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.

CG_INVALID_PARAMETER_ERROR 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