Cg OpenGL Runtime API cgGLSetManageTextureParameters(3)
NAME
cgGLSetanageTextureParameters - set the manage texture
parameters flag for a context
SYNOPSIS
#include
void cgGLSetManageTextureParameters( CGcontext context,
CGbool flag );
PARAMETERS
context The context in which the automatic texture
management behavior will be changed.
flag A boolean switch which controls automatic texture
management by the runtime.
RETURN VALUES
None.
DESCRIPTION
By default, cgGL does not manage any texture state in
OpenGL. It is up to the user to enable and disable textures
using cgGLEnableTextureParameter and
cgGLDisableTextureParameter 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,
cgGLSetanageTextureParameters may be called with flag set
to CGTRUE before cgGLBindProgram is called. Whenever
cgGLBindProgram is called, the cgGL runtime will make all
the appropriate texture parameter calls on the application's
behalf.
cgGLUnbindProgram may be used to reset the texture state
Calling cgGLSetanageTextureParameters with flag set to
CGFALSE will disable automatic texture management.
NOTE: When cgGLSetanageTextureParameters is set to CGTRUE,
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
Cg Toolkit 2.1 Last change: 1
Cg OpenGL Runtime API cgGLSetManageTextureParameters(3)
ERORS
None.
HISTORY
cgGLSetanageTextureParameters was introduced in Cg 1.2.
SEE ALSO
cgGLGetManageTextureParameters, cgGLBindProgram,
cgGLUnbindProgram
Cg Toolkit 2.1 Last change: 2
|