more x86_64 work. started to put the mmu bits together in the (former) stage2 loader.
[newos.git] / apps / window_server / Renderer_vga.h
blob4c00a656973e21f9275e3f4b0faf4912db864fff
1 #ifndef _RENDERER_VGA_H
2 #define _RENDERER_VGA_H
4 #include "Renderer_8bpp.h"
6 class Renderer_vga : public Renderer_8bpp {
7 public:
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);
19 private:
20 void EraseCursor();
21 void DrawCursor();
23 char fSavedBackground[256];
24 int fCursorX, fCursorY;
28 #endif