public override void DrawText(SharedLibary.Colour color, Point2D pt, Font font, string text)
 {
     throw new NotImplementedException();
 }
 public override void FillEllipse(SharedLibary.Colour color, SharedLibary.Rectangle rect)
 {
     throw new NotImplementedException();
 }
 public override void FillHexagon(SharedLibary.Colour color, Hexagon hexagaon)
 {
     throw new NotImplementedException();
 }
 public override void FillTriangle(SharedLibary.Colour color, Triangle tri)
 {
     throw new NotImplementedException();
 }
 public override void FillCircle(SharedLibary.Colour color, Circle circle)
 {
     throw new NotImplementedException();
 }
Пример #6
0
 private SwinGameSDK.Color ToSwinGameColor(SharedLibary.Colour color)
 {
     return(SwinGameSDK.Color.FromArgb(color.ARGB));
 }
 public override void DrawPixel(SharedLibary.Colour color, Point2D point)
 {
     throw new NotImplementedException();
 }
Пример #8
0
 public override void FillHexagon(SharedLibary.Colour color, Hexagon hexagaon)
 {
     hexagaon.Triangles.ForEach(i => FillTriangle(color, i));
 }
Пример #9
0
 public override void DrawText(SharedLibary.Colour color, SharedLibary.Point2D point, SharedLibary.Font font, string text)
 {
     SwinGame.DrawText(text, ToSwinGameColor(color), GetSwinGameFont(font), (float)point.X, (float)point.Y);
 }
Пример #10
0
 public override void FillEllipse(SharedLibary.Colour color, SharedLibary.Rectangle rect)
 {
     SwinGame.FillEllipse(ToSwinGameColor(color), PointWraper.ToRectangle(rect));
 }
Пример #11
0
 public override void FillCircle(SharedLibary.Colour color, SharedLibary.Circle circle)
 {
     SwinGame.FillCircle(ToSwinGameColor(color), (float)circle.X, (float)circle.Y, (float)circle.Radius);
 }
Пример #12
0
 public override void FillTriangle(SharedLibary.Colour color, SharedLibary.Triangle tri)
 {
     SwinGame.FillTriangle(ToSwinGameColor(color), (float)tri.Top.X, (float)tri.Top.Y, (float)tri.BotLeft.X, (float)tri.BotLeft.Y, (float)tri.BotRight.X, (float)tri.BotRight.Y);
 }
Пример #13
0
 public override void DrawRectangle(SharedLibary.Colour color, SharedLibary.Rectangle rect)
 {
     SwinGame.DrawRectangle(ToSwinGameColor(color), (float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.Height);
 }
Пример #14
0
 public override void DrawPixel(SharedLibary.Colour color, SharedLibary.Point2D point)
 {
     SwinGame.DrawPixel(ToSwinGameColor(color), PointWraper.ToPoint2D(point));
 }