MaterialTests SaveAndLoadAnimationMaterial Method Delta Engine Documentation

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

public void SaveAndLoadAnimationMaterial()
Examples

[Test, CloseAfterFirstFrame]
public void SaveAndLoadAnimationMaterial()
{
    var shader = ContentLoader.Create<Shader>(
        new ShaderCreationData(ShaderFlags.Position2DTextured));
    var animation = ContentLoader.Load<ImageAnimation>("MyImageAnimation");
    SaveAndLoadMaterialAndCompare(new Material(shader, null)
    {
        Animation = animation
    });
}
See Also