From 1758c5b211a39c29a193546348e7cc6e7bc2e8c9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 5 Apr 2005 15:07:40 +0000 Subject: Initial checking of Gob engine svn-id: r17388 --- gob/driver_vga.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gob/driver_vga.h (limited to 'gob/driver_vga.h') diff --git a/gob/driver_vga.h b/gob/driver_vga.h new file mode 100644 index 0000000000..0c31cd874d --- /dev/null +++ b/gob/driver_vga.h @@ -0,0 +1,22 @@ +#ifndef DRIVER_VGA +#define DRIVER_VGA + +#include "video.h" + +namespace Gob { + +class VGAVideoDriver : public VideoDriver { +public: + VGAVideoDriver() {} + virtual ~VGAVideoDriver() {} + void drawSprite(SurfaceDesc *source, SurfaceDesc *dest, int16 left, int16 top, int16 right, int16 bottom, int16 x, int16 y, int16 transp); + void fillRect(SurfaceDesc *dest, int16 left, int16 top, int16 right, int16 bottom, byte color); + void putPixel(int16 x, int16 y, byte color, SurfaceDesc *dest); + void drawLetter(char item, int16 x, int16 y, FontDesc *fontDesc, byte color1, byte color2, byte transp, SurfaceDesc *dest); + void drawLine(SurfaceDesc *dest, int16 x0, int16 y0, int16 x1, int16 y1, byte color); + void drawPackedSprite(byte *sprBuf, int16 width, int16 height, int16 x, int16 y, byte transp, SurfaceDesc *dest); +}; + +} + +#endif -- cgit v1.2.3