Click or drag to resize
DigitalRunePackedTextureGetTextureCoordinates Method
Converts texture coordinates.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public Vector2F GetTextureCoordinates(
	Vector2F texCoord,
	float animationTime
)

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: Vector2F
The texture coordinate in the texture atlas.
See Also