Cg Toolkit Cg 3.1 Toolkit Documentation
Cg / Sampler States / GenerateMipmap

Name

GenerateMipmap - 3D API texture mipmap generation

Usage

GenerateMipmap = bool(enable)

Valid Enumerants

enable: true, false

Description

Set the OpenGL texture mipmap generation for the given texture. See the GL_GENERATE_MIPMAP description on the OpenGL glTexParameter manual page for details.

For a TextureRectangle texture, this state has no effect.

The standard reset callback sets the GenerateMipmap state to bool(false).

Opengl Functionality Requirements

OpenGL 1.4 or support for extension SGIS_generate_mipmap.

Direct3D Functionality Requirements

Not applicable.

See Also

Texture, Texture1D, Texture1DEnable, Texture2D, Texture2DEnable, Texture3D, Texture3DEnable, TextureCubeMap, TextureCubeMapEnable, TextureEnvMode, TextureFactor, TextureRectangle, TextureRectangleEnable, MagFilter, MaxMipLevel, MinFilter, MipFilter, MipMapLodBias


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