public void OnMouseDown(object sender, MouseButtonEventArgs e) { switch (Toolbox.ActiveTool) { case Tools.Rect: Vector3 pos = MousePos; RectTool = new RectTool(pos, pos, SelectedColor); CanvasRenderer.AddRenderable(RectTool.Rect); break; case Tools.Brush: break; case Tools.None: break; default: break; } }
public void AddButton(Rectangle2D button) { Renderer2D.AddRenderable(button); }