Beispiel #1
0
 public SharedLibary.Point2D ToWorld(SharedLibary.Point2D point)
 {
     return(PointWraper.FromSplashKit(SplashKit.ToWorld(PointWraper.ToSplashKit(point))));
 }
Beispiel #2
0
 public void SetCamreaPostion(SharedLibary.Point2D point)
 {
     SplashKit.SetCameraPosition(PointWraper.ToSplashKit(point));
 }
Beispiel #3
0
 public void SetCamreaPostion(SharedLibary.Point2D point)
 {
     SwinGame.SetCameraX((float)point.X);
     SwinGame.SetCameraY((float)point.Y);
 }
Beispiel #4
0
 public SharedLibary.Point2D ToWorld(SharedLibary.Point2D point)
 {
     return(PointWraper.FromPoint2D(SwinGameSDK.SwinGame.ToWorld(PointWraper.ToPoint2D(point))));
 }
Beispiel #5
0
 public static SplashKitSDK.Point2D ToSplashKit(SharedLibary.Point2D pt)
 {
     return(new SplashKitSDK.Point2D {
         X = pt.X, Y = pt.Y
     });
 }
Beispiel #6
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);
 }
Beispiel #7
0
 public override void DrawPixel(SharedLibary.Colour color, SharedLibary.Point2D point)
 {
     SwinGame.DrawPixel(ToSwinGameColor(color), PointWraper.ToPoint2D(point));
 }