コード例 #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);
        }
コード例 #2
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);
        }