Namespace: Blocks
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Tests: Blocks.Tests.BrickTests
3 unit tests call Blocks.Brick.UpdateDrawArea
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Remarks
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