Namespace: DeltaEngine.Rendering2D.Spine
Assembly: DeltaEngine.Rendering2D.Spine (in DeltaEngine.Rendering2D.Spine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering2D.Spine.Tests.SpineSkeletonTests
3 unit tests call DeltaEngine.Rendering2D.Spine.SpineSkeleton.FlipMode
Assembly: DeltaEngine.Rendering2D.Spine (in DeltaEngine.Rendering2D.Spine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: FlipModeRemarks
Examples
[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