annotate Renderer/Engine/ViewerDevice.h @ 1161:cc1a50cac83d draft

use MemorySegment API for pp load. do not check execution of the cell side. to be continued..
author Yutaka_Kinjyo
date Thu, 05 May 2011 00:15:43 +0900
parents fdb36a9c5030
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
1 #ifndef INCLUDED_VIEWER_DEV
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
2 #define INCLUDED_VIEWER_DEV
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
3
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
4 #include "TaskManager.h"
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
5 #include "SDL.h"
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
6
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
7 class ViewerDevice {
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
8 public:
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
9 ViewerDevice();
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
10 virtual ~ViewerDevice();
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
11
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
12 ViewerDevice(TaskManager *m) {};
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
13
895
b662e9dd26b0 add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 728
diff changeset
14 int width;
b662e9dd26b0 add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 728
diff changeset
15 int height;
b662e9dd26b0 add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 728
diff changeset
16 int bpp;
b662e9dd26b0 add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 728
diff changeset
17
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
18 /* override function */
c7afc21e448d 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
fdb36a9c5030 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
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
21 virtual void clean_pixels() = 0;
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
22 virtual void clear_screen() = 0;
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
23 virtual void free_device() = 0;
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
24 };
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
25
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents:
diff changeset
26 #endif