Renderer_vga.h (780B)
1 #ifndef _RENDERER_VGA_H 2 #define _RENDERER_VGA_H 3 4 #include <blt/qsem.h> 5 #include "Renderer_8bpp.h" 6 #include "Rect.h" 7 8 class Renderer_vga : public Renderer_8bpp { 9 public: 10 Renderer_vga(char *baseAddress, int width, int height, int bytesPerRow); 11 void DrawLine(int x1, int y1, int x2, int y2, char color); 12 void FillRect(int x1, int y1, int x2, int y2, char color); 13 void Blit(int x, int y, char image[], int image_width, 14 int image_height, int img_bytes_per_row); 15 void StretchBlit(const Rect &imageRect, const Rect &displayRect, char image[], 16 int imageBytesPerRow); 17 void CopyRect(const Rect &source, const Rect &dest); 18 19 void SetCursorPosition(int x, int y); 20 21 private: 22 void EraseCursor(); 23 void DrawCursor(); 24 25 char fSavedBackground[256]; 26 int fCursorX, fCursorY; 27 }; 28 29 30 #endif