예제 #1
0
        protected override void Initialize()
        {
            var sw = Stopwatch.StartNew();

            _logger.Information("App: Initializing...");

            _imGuiRenderer = new ImGuiRenderer(this);
            _imGuiRenderer.RebuildFontAtlas();

            _previousKeyboardState = Keyboard.GetState();
            _previousMouseState    = Mouse.GetState();

            base.Initialize();

            _currentWorld = _worldProvider.GetWorld(_clientStartParameters.ProjectId);

            _spriteBatch = new SpriteBatch(GraphicsDevice);

            sw.Stop();
            _logger.Information("App: Initializing...Done. Took {@TotalSeconds}s", sw.Elapsed.TotalSeconds);
        }