public LogoGame(Renderer render, Time time, Window window) { box = new ColoredRectangle(render, Point.Half, Size.Half, Color.Red); this.time = time; this.window = window; window.BackgroundColor = Color.CornflowerBlue; }
public void TestDrawAreaWhenChangingOrientation(Type type) { var rect = new ColoredRectangle(new Point(0.7f, 0.7f), new Size(0.1f, 0.1f), Color.Red); Start(type, (Renderer testRenderer) => testRenderer.Add(rect), (Window testWindow, ScreenSpace screen) => { testWindow.TotalPixelSize = new Size(480, 800); CheckQuadraticSpaceInPortrait(screen); CheckPixelSpaceInPortrait(screen); testWindow.TotalPixelSize = new Size(800, 480); CheckQuadraticSpaceInLandscape(screen); CheckPixelSpaceInLandscape(screen); }); }