Beispiel #1
0
        public void Draw(PrimitiveBatch primitiveBatch)
        {
            PrimitiveBrush pb = new PrimitiveBrush();
            pb.BorderAlignment = BorderAlignment.Center;
            pb.BorderThickness = 4;
            pb.BorderColor = Color.Red;
            pb.FillColor = Color.Transparent;

            primitiveBatch.DrawCircle(Vector2.Zero, Radius, pb, WorldTransform);
        }
Beispiel #2
0
        public void Draw(PrimitiveBatch primitiveBatch)
        {
            PrimitiveBrush pb = new PrimitiveBrush();

            pb.BorderAlignment = BorderAlignment.Center;
            pb.BorderThickness = 4;
            pb.BorderColor     = Color.Red;
            pb.FillColor       = Color.Transparent;

            primitiveBatch.DrawCircle(Vector2.Zero, Radius, pb, WorldTransform);
        }
Beispiel #3
0
        public static void Draw(INode node, PrimitiveBatch primitiveBatch)
        {
            IPrimitive primitive = node as IPrimitive;
            if (primitive != null)
            {
                primitive.Draw(primitiveBatch);
            }

            for (int i = 0; i < node.Children.Count; i++)
            {
                Draw(node.Children[i], primitiveBatch);
            }
        }
Beispiel #4
0
        public static void Draw(INode node, PrimitiveBatch primitiveBatch)
        {
            IPrimitive primitive = node as IPrimitive;

            if (primitive != null)
            {
                primitive.Draw(primitiveBatch);
            }

            for (int i = 0; i < node.Children.Count; i++)
            {
                Draw(node.Children[i], primitiveBatch);
            }
        }
Beispiel #5
0
 public void Draw(PrimitiveBatch primitiveBatch)
 {
 }