AGI STK Graphics 11 Send comments on this topic.
Initialize Method (IAgStkGraphicsTextureFilter2DFactory)
See Also 
MinificationFilter
A minification filter.
MagnificationFilter
A magnification filter.
WrapS
A texture wrap for the S direction.
WrapT
A texture wrap for the T direction.





Description

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

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.
WrapS
Member Value Description
eStkGraphicsTextureWrapClamp 0 Clamp the texture coordinate to the range [0, 1].
eStkGraphicsTextureWrapClampToBorder 1 Clamp the texture coordinate to the range [-1/2N, 1 + 1/2N], where N is the size the texture in the direction of clamping.
eStkGraphicsTextureWrapClampToEdge 2 Clamp the texture coordinate to the range [1/2N, 1 - 1/2N], where N is the size the texture in the direction of clamping.
eStkGraphicsTextureWrapMirroredRepeat 3 If the integer part of the texture coordinate is even, use the fractional part of the texture coordinate. Otherwise, use one minus the fractional part of the texture coordinate.
eStkGraphicsTextureWrapRepeat 4 Ignore the integer part of the texture coordinate.
A texture wrap for the S direction.
WrapT
Member Value Description
eStkGraphicsTextureWrapClamp 0 Clamp the texture coordinate to the range [0, 1].
eStkGraphicsTextureWrapClampToBorder 1 Clamp the texture coordinate to the range [-1/2N, 1 + 1/2N], where N is the size the texture in the direction of clamping.
eStkGraphicsTextureWrapClampToEdge 2 Clamp the texture coordinate to the range [1/2N, 1 - 1/2N], where N is the size the texture in the direction of clamping.
eStkGraphicsTextureWrapMirroredRepeat 3 If the integer part of the texture coordinate is even, use the fractional part of the texture coordinate. Otherwise, use one minus the fractional part of the texture coordinate.
eStkGraphicsTextureWrapRepeat 4 Ignore the integer part of the texture coordinate.
A texture wrap for the T direction.

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1