internal GraphicsDevice(GraphicSystem graphicSystem) { _direct3D = new Direct3D(); _graphicsSystem = graphicSystem; _presentParameters = new PresentParameters(); _presentParameters.InitDefaults(); _presentParameters.BackBufferWidth = graphicSystem.DefaultScreenWidth; _presentParameters.BackBufferHeight = graphicSystem.DefaultScreenHeight; }
public void Run() { Controllers.GameObjectController = new GameObjectController(); _graphics = new GraphicSystem(_logic, _render); Controllers.Application = this; Controllers.GraphicSystem = _graphics; Initialize(); _graphics.StartRenderLoop(); // MUST ALWAYS BE LAST! }