0
|
1 #ifndef INCLUDED_VIEWER_DEV
|
|
2 #define INCLUDED_VIEWER_DEV
|
|
3
|
|
4 #include "TaskManager.h"
|
|
5 #include "SDL.h"
|
|
6
|
|
7 class ViewerDevice {
|
|
8 public:
|
|
9 ViewerDevice();
|
|
10 virtual ~ViewerDevice();
|
|
11
|
|
12 ViewerDevice(TaskManager *m) {};
|
|
13
|
|
14 int width;
|
|
15 int height;
|
|
16 int bpp;
|
|
17
|
|
18 /* override function */
|
|
19 virtual Uint32 *video_init(TaskManager *manager, int bpp, int width, int height) = 0;
|
|
20 virtual Uint32 * flip_screen(Uint32 *v) { return v; }
|
|
21 virtual void clean_pixels() = 0;
|
|
22 virtual void clear_screen() = 0;
|
|
23 virtual void free_device() = 0;
|
|
24 };
|
|
25
|
|
26 #endif
|