NAME

cgGLEnableTextureParameter - enables the texture unit associated with the given texture parameter

SYNOPSIS

  #include <Cg/cgGL.h>

  void cgGLEnableTextureParameter(CGparameter param);

PARAMETERS

param

Specifies the texture parameter that has a texture object associated with it.

DESCRIPTION

cgGLEnableTextureParameter binds and enables the texture object that was associated with the parameter param. It must be called after the "cgGLSetTextureParameter" document is called but before the geometry is drawn.

cgGLDisableTextureParameter should be called once all of the geometry is drawn to avoid applying the texture to the wrong geometry and shaders.

RETURN VALUES

cgGLEnableTextureParameter does not return any values.

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

SEE ALSO

the "cgGLDisableTextureParameter" document, and the "cgGLSetTextureParameter" document