예제 #1
0
 internal GraphicsDevice(GraphicSystem graphicSystem)
 {
     _direct3D = new Direct3D();
     _graphicsSystem = graphicSystem;
     _presentParameters = new PresentParameters();
     _presentParameters.InitDefaults();
     _presentParameters.BackBufferWidth = graphicSystem.DefaultScreenWidth;
     _presentParameters.BackBufferHeight = graphicSystem.DefaultScreenHeight;
 }
예제 #2
0
 internal GraphicsDevice(GraphicSystem graphicSystem)
 {
     _direct3D          = new Direct3D();
     _graphicsSystem    = graphicSystem;
     _presentParameters = new PresentParameters();
     _presentParameters.InitDefaults();
     _presentParameters.BackBufferWidth  = graphicSystem.DefaultScreenWidth;
     _presentParameters.BackBufferHeight = graphicSystem.DefaultScreenHeight;
 }
예제 #3
0
        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!
        }
예제 #4
0
        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!
        }