SpriteTests RenderHierachyEntityWithAttachedSprites 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 RenderHierachyEntityWithAttachedSprites()
Examples

[Test]
public void RenderHierachyEntityWithAttachedSprites()
{
    var mainEntity = new Sprite(logoMaterial, Rectangle.HalfCentered);
    mainEntity.Add(new Sprite(logoMaterial, Rectangle.FromCenter(0.3f, 0.3f, 0.1f, 0.1f)));
    new Command(Command.Click, delegate(Vector2D position)
    {
        mainEntity.Center = position;
    });
}
See Also