public RenderFrame() { var bound = Screen.AllScreens[Config.DisplayScreen].Bounds; Config.Width = bound.Width; Config.Height = bound.Height; Point windowSize = new Point(Config.Width, Config.Height); Instance = this; RenderForm = new TouchForm("GameOfLife") { StartPosition = FormStartPosition.Manual, FormBorderStyle = FormBorderStyle.None, ClientSize = new Size(windowSize), Location = new Point(bound.X, bound.Y), }; CreateDeviceSwapChainContext(); Initialize(); SetContextStates(); OverrideEvents(); spriteBatch = new SpriteBatch(); inputHandler = new TextureInput(device); gol = new GameOfLifeCalculator(); QueryPerformanceFrequency(out freq); QueryPerformanceCounter(out tickPrev); UI = new Userinterface(inputHandler); RenderForm.MouseMove += RenderForm_MouseMove; RenderForm.MouseWheel += RenderForm_MouseWheel; RenderForm.MouseDown += OnMouseDown; RenderForm.MouseUp += RenderForm_MouseUp; RenderForm.Touchdown += OnTouchDownHandler; RenderForm.Touchup += OnTouchUpHandler; RenderForm.TouchMove += OnTouchMoveHandler; }
public GameOfLifeCalculatorTests() { _classUnderTest = new GameOfLifeCalculator(); }