NAME
cgGLSetManageTextureParameters - sets the manage texture parameters flag for a context
SYNOPSIS
#include <Cg/cgGL.h> void cgGLSetManageTextureParameters( CGcontext context, CGbool flag );PARAMETERS
- context
The context.
- flag
The flag to set the manage textures flag to.
RETURN VALUES
None.
or B<cgGLSetManageTextureParameters> returns I<to-be-written>DESCRIPTION
By default, cgGL does not manage any texture state in OpenGL. It is up to the user to enable and disable textures with cgGLEnableTexture and cgGLDisableTexture respectively. This behavior is the default in order to avoid conflicts with texture state on geometry that's rendered with the fixed function pipeline or without cgGL.
If automatic texture management is desired, cgGLSetManageTextureParameters may be called with flag set to CG_TRUE before cgGLBindProgram is called. Whenever cgGLBindProgram is called, the cgGL Runtime will make all the appropriate texture parameter calls on the application's behalf. To reset the texture state cgGLUnbindProgram may be used.
Calling cgGLSetManageTextureParameters with flag set to CG_FALSE will disable automatic texture management.
NOTE: When cgGLSetManageTextureParameters is set to CG_TRUE, applications should not make texture state change calls to OpenGL (such as glBindTexture, glActiveTexture, etc.) after calling cgGLBindProgram, unless the application is trying to override some parts of CgGL's texture management.
EXAMPLES
to-be-written
ERRORS
to-be-written
HISTORY
cgGLSetManageTextureParameters was introduced in Cg 1.2.
SEE ALSO
cgGLGetManageTextureParameters, cgGLBindProgram, cgGLUnbindProgram