Sprite Elapsed Property Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D
Assembly: DeltaEngine.Rendering2D (in DeltaEngine.Rendering2D.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public float Elapsed { get; set; }

Property Value

Type: Single
Remarks

Tests: DeltaEngine.Rendering2D.Tests.SpriteTests
Examples

1 unit tests call DeltaEngine.Rendering2D.Sprite.Elapsed
[Test, CloseAfterFirstFrame]
public void ResetNonAnimationSprite()
{
    var sprite = new Sprite(logoMaterial, Rectangle.HalfCentered);
    sprite.Elapsed = 4f;
    sprite.Reset();
    Assert.AreEqual(0f, sprite.Elapsed);
}
See Also