コード例 #1
0
 public override void DrawText(SharedLibary.Colour color, Point2D pt, Font font, string text)
 {
     throw new NotImplementedException();
 }
コード例 #2
0
 public override void FillEllipse(SharedLibary.Colour color, SharedLibary.Rectangle rect)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public override void FillHexagon(SharedLibary.Colour color, Hexagon hexagaon)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 public override void FillTriangle(SharedLibary.Colour color, Triangle tri)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 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));
 }
コード例 #7
0
 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));
 }