示例#1
0
 public static void DrawPoint(Vector2f position)
 {
     if (cIndex < circles.Length)
     {
         circles[cIndex].Position = position;
         render.Draw(circles[cIndex]);
         cIndex++;
     }
 }
示例#2
0
 public override void Draw(RenderAdapter render)
 {
     convexShape.Position = drawableActor.Transform.Position.ToVector2f();
     convexShape.Rotation = drawableActor.Transform.Rotation;
     //convexShape.Scale = drawableActor.Transform.Scale.ToVector2f();
     render.Draw(convexShape);
 }
示例#3
0
 public override void Draw(RenderAdapter render)
 {
     sprite.Position = sceneActor.Transform.Position.ToVector2f();
     sprite.Rotation = sceneActor.Transform.Rotation;
     sprite.Scale    = Scale.ToVector2f();
     render.Draw(sprite);
 }
示例#4
0
 public override void Draw(RenderAdapter render)
 {
     text.Position = text.Position = Transform.Position.ToVector2f();
     base.Draw(render);
     render.Draw(text);
 }