Brick UpdateDrawArea Method Delta Engine Documentation

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

public void UpdateDrawArea()
Remarks

Tests: Blocks.Tests.BrickTests
Examples

3 unit tests call Blocks.Brick.UpdateDrawArea
[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