SpineSkeleton Dispose Method 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 override void Dispose()

Implements

IDisposable Dispose 
Remarks

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

2 unit tests call DeltaEngine.Rendering2D.Spine.SpineSkeleton.Dispose
[Test, CloseAfterFirstFrame]
public void Dispose()
{
    spineboy.Dispose();
}
[Test, ApproveFirstFrameScreenshot, Ignore]
public void RenderDragon()
{
    spineboy.Dispose();
    new FontText(Font.Default, "Click mouse to make the dragon bite",
        Rectangle.FromCenter(0.5f, 0.25f, 1.0f, 0.1f));
    var dragon = new SpineSkeleton("DragonAtlas", "DragonSkeleton",
        new Rectangle(0.4f, 0.75f, 0.35f, 0.35f));
    new Command(() => dragon.SetAnimation("animation")).Add(new MouseButtonTrigger());
}
See Also