Esempio n. 1
0
        protected Application(Type windowType)
        {
#if DEBUG
            using Profiler fullProfiler = new Profiler(GetType());
#endif
            CultureInfo.DefaultThreadCurrentCulture   = CultureInfo.InvariantCulture;
            CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture;
            Logger.Init();
            Logger.Assert(App == null, "App already initialized");
            App                  = this;
            LayerStack           = new LayerStack();
            Window               = WindowBase.CreateMainWindow(windowType);
            Window.EventCallback = OnEvent;
            ImGuiLayer           = new ImGuiLayer();
            LayerStack.PushOverlay(ImGuiLayer);
        }