コード例 #1
0
ファイル: Engine.cs プロジェクト: vaginessa/OpenC1
        public static void Startup(Game game, GraphicsDeviceManager graphics)
        {
            Game          = game;
            Device        = graphics.GraphicsDevice;
            _isFullScreen = graphics.IsFullScreen;

            DrawDistance = 1000;

            _contentManager = new ContentManager(Game.Services);

            Input         = new InputProvider(Game);
            DebugRenderer = new DebugRenderer();
            _spriteBatch  = new SpriteBatch(Device);
            _fpsCounter   = new FrameRateCounter();
            Random        = new RandomGenerator();
            TimeScale     = 1;
            Window        = Game.Window.ClientBounds;
        }
コード例 #2
0
ファイル: GameEngine.cs プロジェクト: q4a/OpenC1
        public static void Startup(Game game, GraphicsDeviceManager graphics)
        {
            Game          = game;
            Device        = graphics.GraphicsDevice;
            _isFullScreen = graphics.IsFullScreen;

            screenshot = new RenderTarget2D(Device, Device.PresentationParameters.BackBufferWidth,
                                            Device.PresentationParameters.BackBufferHeight, true, SurfaceFormat.Color, DepthFormat.Depth24Stencil8);

            DrawDistance = 1000;

            _contentManager = new ContentManager(Game.Services);

            Input         = new InputProvider(Game);
            DebugRenderer = new DebugRenderer();
            _spriteBatch  = new SpriteBatch(Device);
            _fpsCounter   = new FrameRateCounter();
            Random        = new RandomGenerator();
            TimeScale     = 1;
            Window        = Game.Window.ClientBounds;
        }
コード例 #3
0
ファイル: Engine.cs プロジェクト: sikora507/OpenC1
        public static void Startup(Game game, GraphicsDeviceManager graphics)
        {
            Game = game;
            Device = graphics.GraphicsDevice;
            _isFullScreen = graphics.IsFullScreen;

            DrawDistance = 1000;

            _contentManager = new ContentManager(Game.Services);

            Input = new InputProvider(Game);
            DebugRenderer = new DebugRenderer();
            _spriteBatch = new SpriteBatch(Device);
            _fpsCounter = new FrameRateCounter();
            Random = new RandomGenerator();
            TimeScale = 1;
            Window = Game.Window.ClientBounds;
        }