BrickTests RenderBrick Method Delta Engine Documentation

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

public void RenderBrick()
Examples

[Test, CloseAfterFirstFrame]
public void RenderBrick()
{
    var brick = new Brick(material, new Vector2D(5, 5), displayMode);
    brick.UpdateDrawArea();
}
[Test]
public void RenderBrickInLandscapeMode()
{
    Resolve<Window>().ViewportPixelSize = new Size(600, 800);
    var brick = new Brick(material, new Vector2D(5, 5), Orientation.Landscape);
    brick.UpdateDrawArea();
}
[Test]
public void RenderBrickInPortraitMode()
{
    Resolve<Window>().ViewportPixelSize = new Size(600, 800);
    var brick = new Brick(material, new Vector2D(5, 5), Orientation.Portrait);
    brick.UpdateDrawArea();
}
See Also