AGI STK Graphics 11 Send comments on this topic.
Texture Property (IAgStkGraphicsSurfaceMeshPrimitive)
See Also 





Description

Gets or sets the texture applied to this primitive when rendering.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property Texture() As IAgStkGraphicsRendererTexture2D

[C#]
public IAgStkGraphicsRendererTexture2D Texture {get; set;}

[Managed C++]
public: __property IAgStkGraphicsRendererTexture2D^ get_Texture();
public: __property void set_Texture(
IAgStkGraphicsRendererTexture2D ^
);

[Unmanaged C++]
public: HRESULT get_Texture(
IAgStkGraphicsRendererTexture2D ** ppRetVal
);
public: HRESULT put_Texture(
IAgStkGraphicsRendererTexture2D * pNewTexture
);

[Java]
public IAgStkGraphicsRendererTexture2D getTexture();public void setTexture(
IAgStkGraphicsRendererTexture2D
);

Remarks

When a Texture is defined, it is modulated with the primitive's Color. In order to show just the texture color, make sure Color is White.

By default, the texture is aligned north and encompasses the bounding extent of the surface mesh. Use Texture Matrix to scale, translate, and/or rotate the texture.

The texture will not show up correctly if Set Without Texturing is used to define the surface mesh. When a texturing is desired, always use Set instead of Set Without Texturing.

If rendering performance is poor when a texture is applied to the surface mesh, it is likely that the texturing is occurring in software instead of hardware. If you experience this, try updating your video card drivers.

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1