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 Variant()

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 Analytical Graphics, Inc. All Rights Reserved.

STK 11.1 Programming Interface