SpineSkeleton FlipMode Property Delta Engine Documentation

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

public FlipMode FlipMode { get; set; }

Property Value

Type: FlipMode
Remarks

Tests: DeltaEngine.Rendering2D.Spine.Tests.SpineSkeletonTests
Examples

3 unit tests call DeltaEngine.Rendering2D.Spine.SpineSkeleton.FlipMode
[Test]
public void DrawSpineboyWalkingLeft()
{
    Assert.AreEqual(FlipMode.None, spineboy.FlipMode);
    spineboy.Origin = new Vector2D(0.5f, 0.7f);
    spineboy.FlipMode = FlipMode.Horizontal;
    Assert.AreEqual(FlipMode.Horizontal, spineboy.FlipMode);
}
[Test]
public void DrawUpsideDownSpineboyWalkingRight()
{
    spineboy.Origin = new Vector2D(0.5f, 0.3f);
    spineboy.FlipMode = FlipMode.Vertical;
    Assert.AreEqual(FlipMode.Vertical, spineboy.FlipMode);
}
[Test]
public void DrawUpsideDownSpineboyWalkingLeft()
{
    spineboy.Origin = new Vector2D(0.5f, 0.3f);
    spineboy.FlipMode = FlipMode.HorizontalAndVertical;
    Assert.AreEqual(FlipMode.HorizontalAndVertical, spineboy.FlipMode);
}
See Also