Mercurial > hg > Members > kono > Cerium
annotate Renderer/Engine/ViewerDevice.h @ 981:a193a851b5e3
add double buffering frame device
author | root@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 30 Sep 2010 23:54:08 +0900 |
parents | bed529c55eda |
children |
rev | line source |
---|---|
728 | 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 | |
895
bed529c55eda
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
728
diff
changeset
|
14 int width; |
bed529c55eda
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
728
diff
changeset
|
15 int height; |
bed529c55eda
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
728
diff
changeset
|
16 int bpp; |
bed529c55eda
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
728
diff
changeset
|
17 |
728 | 18 /* override function */ |
19 virtual Uint32 *video_init(TaskManager *manager, int bpp, int width, int height) = 0; | |
981
a193a851b5e3
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
895
diff
changeset
|
20 virtual Uint32 * flip_screen(Uint32 *v) { return v; } |
728 | 21 virtual void clean_pixels() = 0; |
22 virtual void clear_screen() = 0; | |
23 virtual void free_device() = 0; | |
24 }; | |
25 | |
26 #endif |