Renderer_8bpp.h (606B)
1 #ifndef _RENDERER_8BPP_H 2 #define _RENDERER_8BPP_H 3 4 #include "Renderer.h" 5 #include "Rect.h" 6 7 class Renderer_8bpp : public Renderer { 8 public: 9 Renderer_8bpp(char *baseAddress, int width, int height, int bytesPerRow); 10 void DrawLine(int x1, int y1, int x2, int y2, char color); 11 void FillRect(int x1, int y1, int x2, int y2, char color); 12 void Blit(int x, int y, char image[], int image_width, 13 int image_height, int img_bytes_per_row); 14 void StretchBlit(const Rect &imageRect, const Rect &displayRect, char image[], 15 int imageBytesPerRow); 16 void CopyRect(const Rect &source, const Rect &dest); 17 }; 18 19 20 #endif