| PackedTextureGetTextureCoordinates Method |
Converts texture coordinates.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public Vector2F GetTextureCoordinates(
Vector2F texCoord,
float animationTime
)
Public Function GetTextureCoordinates (
texCoord As Vector2F,
animationTime As Single
) As Vector2F
public:
Vector2F GetTextureCoordinates(
Vector2F texCoord,
float animationTime
)
member GetTextureCoordinates :
texCoord : Vector2F *
animationTime : float32 -> Vector2F
Parameters
- texCoord
- Type: DigitalRune.Mathematics.AlgebraVector2F
The texture coordinates of the unpacked texture. - animationTime
- Type: SystemSingle
For tile sets: The normalized animation time. (0 = start of the animation, 1 = end of
animation)
Return Value
Type:
Vector2FThe texture coordinate in the texture atlas.
See Also