1 #ifndef _RENDERER_VGA_H
2 #define _RENDERER_VGA_H
4 #include "Renderer_8bpp.h"
6 class Renderer_vga
: public Renderer_8bpp
{
8 Renderer_vga(char *baseAddress
, int width
, int height
, int bytesPerRow
);
9 void DrawLine(int x1
, int y1
, int x2
, int y2
, char color
);
10 void FillRect(int x1
, int y1
, int x2
, int y2
, char color
);
11 void Blit(int x
, int y
, char image
[], int image_width
,
12 int image_height
, int img_bytes_per_row
);
13 void StretchBlit(const Rect
&imageRect
, const Rect
&displayRect
, char image
[],
14 int imageBytesPerRow
);
15 void CopyRect(const Rect
&source
, const Rect
&dest
);
17 void SetCursorPosition(int x
, int y
);
23 char fSavedBackground
[256];
24 int fCursorX
, fCursorY
;