Cg Toolkit Cg 3.1 Toolkit Documentation
Cg / Sampler States / CompareMode

Name

CompareMode - 3D API compare mode

Usage

CompareMode = int(mode)

Valid Enumerants

mode: None, CompareRToTexture

Description

Specify the texture comparison mode. See the GL_TEXTURE_COMPARE_MODE description on the OpenGL glTexParameter manual page or the GL_ARB_shadow extension for details.

The standard reset callback sets the CompareMode state to float(None).

Opengl Functionality Requirements

OpenGL 1.4 or support for extension GL_ARB_shadow.

Direct3D Functionality Requirements

Not applicable.

See Also

CompareFunc, DepthMode


Cg Toolkit | Cg Toolkit | Download | Release Archive | Profiles | Reference | Books | Discussions |


Cg Sampler States

AddressU
AddressV
AddressW
BorderColor
CompareFunc
CompareMode
DepthMode
GenerateMipmap
LODBias
MagFilter
MaxAnisotropy
MaxMipLevel
MinFilter
MinMipLevel
MipFilter
MipMapLodBias
SRGBTexture
Texture
WrapR
WrapS
WrapT