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