comparison Renderer/Engine/ViewerDevice.h @ 0:04e28d8d3c6f

first commit
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 08 Nov 2010 01:23:25 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:04e28d8d3c6f
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