public void PushLayer(Layer layer) { AXProfiler.Capture(() => { _layers.PushLayer(layer); layer.OnAttach(); }); }
public Shoelace(Veldrid.GraphicsBackend backend) : base(new WindowProps("Shoelace"), typeof(WindowsWindow), backend) { LayerStack.PushLayer(new EditorLayer()); }
public void PushLayer(Layer layer) => LayerStack.PushLayer(layer);
public SandboxApp(Veldrid.GraphicsBackend backend) : base(typeof(WindowsWindow), backend) { LayerStack.PushLayer(new Sandbox2DLayer()); }
/// <summary> /// Adds a layer /// </summary> /// <param name="layer"></param> public void PushLayer(ILayer layer) { layerStack.PushLayer(layer); layer.OnAttach(); }