Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
            }
        }
Exemple #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);
            }
        }
Exemple #5
0
 public void Draw(PrimitiveBatch primitiveBatch)
 {
 }