AGI STK Graphics 11 Send comments on this topic.
InitializeWithMinificationAndMagnification Method (IAgStkGraphicsTextureFilter2DFactory)
See Also 
MinificationFilter
A minification filter.
MagnificationFilter
A magnification filter.





Description

Creates a texture filter using the specified minification/magnification options.

Syntax

Parameters

MinificationFilter
Member Value Description
eStkGraphicsMinificationFilterNearest 0 Use the texel that is closest to the center of the pixel being textured.
eStkGraphicsMinificationFilterLinear 1 Use the weighted average of the four (for 2D textures, two for 1D textures) texels that are closest to the center of the pixel being textured.
eStkGraphicsMinificationFilterNearestMipMapNearest 2 Use the mipmap that most closely matches the size of the pixel being textured. Then use the texel from that mipmap that is closest to the center of the pixel being textured.
eStkGraphicsMinificationFilterLinearMipMapNearest 3 Use the mipmap that most closely matches the size of the pixel being textured. Then use the weighted average of the four (for 2D textures, two for 1D textures) texels from that mipmap that are closest to the center of the pixel being textured.
eStkGraphicsMinificationFilterNearestMipMapLinear 4 Use the two mipmaps that most closely match the size of the pixel being textured. Determine the texel that is closest to the center of the pixel being textured in each mipmap. The final texture value is a weighted average of these two texels.
eStkGraphicsMinificationFilterLinearMipMapLinear 5 Use the two mipmaps that most closely match the size of the pixel being textured. Determine the weighted average of the four (for 2D textures, two for 1D textures) texels that are closest to the center of the pixel being textured in each mipmap. The final texture value is a weighted average of these two texels.
A minification filter.
MagnificationFilter
Member Value Description
eStkGraphicsMagnificationFilterNearest 0 Use the texel that is closest to the center of the pixel being textured. This usually faster than Linear but can produce images with sharper edges.
eStkGraphicsMagnificationFilterLinear 1 Use the weighted average of the four texels that are closest to the center of the pixel being textured.
A magnification filter.

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1