예제 #1
0
        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;
            }
        }
예제 #2
0
 public void AddButton(Rectangle2D button)
 {
     Renderer2D.AddRenderable(button);
 }