NAME

cgGLGetTextureParameter - retrieves the value of texture parameters

SYNOPSIS

  #include <Cg/cgGL.h>

  GLuint cgGLGetTextureParameter(CGparameter param);

PARAMETERS

param

Specifies the texture parameter.

DESCRIPTION

cgGLGetTextureParameter retrieves the value of a texture parameter.

RETURN VALUES

cgGLGetTextureParameter returns the name of the OpenGL object that the texture was set to. If the parameter has not been set, 0 will be returned.

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 get for any other reason.

SEE ALSO

cgGLSetTextureParameter and cgGLGetParameter,