MaterialTests LoadMaterialWithSpriteSheet 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 LoadMaterialWithSpriteSheet()
Examples

[Test, CloseAfterFirstFrame]
public void LoadMaterialWithSpriteSheet()
{
    ContentLoader.Load<SpriteSheetAnimation>("MySpriteSheet");
    var noImageMaterial = ContentLoader.Load<Material>("MaterialWithSpriteSheet");
    Assert.IsNotNull(noImageMaterial.SpriteSheet);
}
See Also