AGI STK Graphics 11 Send comments on this topic.
InitializeWithTextureWrap Method (IAgStkGraphicsTextureFilter2DFactory)
See Also 
WrapS
A texture wrap for the S direction.
WrapT
A texture wrap for the T direction.





Description

Creates a texture filter using the specified texture wrap.

Syntax

[Visual Basic .NET]
Public Function InitializeWithTextureWrap( _
   ByVal WrapS As AgEStkGraphicsTextureWrap, _
   ByVal WrapT As AgEStkGraphicsTextureWrap _
) As IAgStkGraphicsTextureFilter2D

[Managed C++]
public: IAgStkGraphicsTextureFilter2D^ InitializeWithTextureWrap(
AgEStkGraphicsTextureWrap WrapS,
AgEStkGraphicsTextureWrap WrapT
);

[Unmanaged C++]
public: HRESULT InitializeWithTextureWrap(
AgEStkGraphicsTextureWrap WrapS,
AgEStkGraphicsTextureWrap WrapT,
IAgStkGraphicsTextureFilter2D ** ReturnValue
);

Parameters

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