AGI STK Graphics 11 Send comments on this topic.
TextureCoordinate Property (IAgStkGraphicsMarkerBatchPrimitive)
See Also  Example





Description

Gets or sets the per-batch texture coordinate, which is applied to each marker in the batch. The array contains the texture coordinates arranged in the order s, t, p, q.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property TextureCoordinate() As System.Array

[C#]
public System.Array TextureCoordinate {get; set;}

[Managed C++]
public: __property System::Array^ get_TextureCoordinate();
public: __property void set_TextureCoordinate(
System::Array ^
);

[Unmanaged C++]
public: HRESULT get_TextureCoordinate(
SAFEARRAY ** ppRetVal
);
public: HRESULT put_TextureCoordinate(
SAFEARRAY * pNewTextureCoordinate
);

[Java]
public Object[] getTextureCoordinate();public void setTextureCoordinate(
Object[]
);

Remarks

Each texture coordinate component is in the range [0, 1]. The s and t components define the bottom left corner and the p and q components define the upper right corner. When the marker batch uses an entire texture, the texture coordinates are [s, t, p, q] = [0, 0, 1, 1].

If per-marker texture coordinates were specified with MarkerBatchPrimitiveOptionalParameters.SetTextureCoordinates, the per-batch texture coordinate is ignored.

Example

Shows the format of the marker batch's TextureCoordinate property.
[C#] Copy Code
Array coordinates = new object[] 

    0
    0
    1
    1 
}; 
 
markerBatch.TextureCoordinate = coordinates; 
 

Shows the format of the marker batch's TextureCoordinate property.
[Visual Basic .NET] Copy Code
Dim coordinates As Array = New Object() {0, 0, 1, 1}

markerBatch.TextureCoordinate = coordinates

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1