Пример #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);
        }
Пример #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);
        }
Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #5
0
 public void Draw(PrimitiveBatch primitiveBatch)
 {
 }