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); }
public void PushOverlay(Layer overlay) => LayerStack.PushOverlay(overlay);
public void PushOverlay(Layer overlay) { _layers.PushOverlay(overlay); overlay.OnAttach(); }
public void PushOverlay(ILayer layer) { layerStack.PushOverlay(layer); layer.OnAttach(); }