Beispiel #1
0
        public override void DrawText(int dest_x, int dest_y, string text, CanvasImpl c)
        {
            SDL_Canvas canvas = c as SDL_Canvas;

            mSprite.Position = new Point(dest_x, dest_y);
            mSprite.Text     = text;
            mSprite.Color    = FontColor;

            canvas.Surface.Blit(mSprite);
        }
Beispiel #2
0
 public override void DrawText(Point dest_pt, string text, CanvasImpl c)
 {
     DrawText(dest_pt.X, dest_pt.Y, text, c);
 }
Beispiel #3
0
 public override void DrawRects(System.Drawing.Rectangle[] src_rects, System.Drawing.Rectangle[] dest_rects, CanvasImpl c)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Beispiel #4
0
 public override void Draw(System.Drawing.Point dest_pt, CanvasImpl c)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Beispiel #5
0
 public override void Draw(int dest_x, int dest_y, CanvasImpl c)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Beispiel #6
0
        public override void Draw(System.Drawing.Rectangle src_rect, System.Drawing.Rectangle dest_rect, CanvasImpl c)
        {
            SDL_Canvas canvas = c as SDL_Canvas;

            canvas.Surface.Blit(mSurface, dest_rect, src_rect);
        }
Beispiel #7
0
 public override void Draw(System.Drawing.Rectangle dest_rect, CanvasImpl c)
 {
 }