NAME

cgGLSetManageTextureParameters - sets the manage texture parameters flag for a context

SYNOPSIS

  #include <Cg/cgGL.h>

  void cgGLSetManageTextureParameters(CGcontext ctx, CGbool flag);

PARAMETERS

ctx

Specifies the context.

flag

The flag to set the manage textures flag to.

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. To reset the texture state cgGLUnbindProgram may be used.

Calling cgGLSetManageTextureParameters with flag set to CG_FALSE will disable automatic texture management.

ERRORS

SEE ALSO

the "cgGLGetManageTextureParameters" document, the "cgGLBindProgram" document, and the "cgGLUnbindProgram" document