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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
728
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
1 #ifndef INCLUDED_VIEWER_DEV
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
2 #define INCLUDED_VIEWER_DEV
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
3
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
4 #include "TaskManager.h"
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
5 #include "SDL.h"
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
6
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
7 class ViewerDevice {
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
8 public:
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
9 ViewerDevice();
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
10 virtual ~ViewerDevice();
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
11
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
12 ViewerDevice(TaskManager *m) {};
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
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
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
18 /* override function */
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
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
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
21 virtual void clean_pixels() = 0;
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
22 virtual void clear_screen() = 0;
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
23 virtual void free_device() = 0;
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
24 };
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
25
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
26 #endif