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; }
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; }