annotate Renderer/Engine/viewerSDL.h @ 1002:c79651141045

many changes.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Sun, 24 Oct 2010 19:00:47 +0900
parents df5185513c2d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 #ifndef INCLUDED_VIEWER_SDL
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2 #define INCLUDED_VIEWER_SDL
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3
728
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 507
diff changeset
4 #include "ViewerDevice.h"
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5
728
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 507
diff changeset
6 class ViewerSDL : public ViewerDevice {
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7 public:
728
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 507
diff changeset
8 ViewerSDL(TaskManager* manager) {};
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 507
diff changeset
9 ViewerSDL();
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 507
diff changeset
10 virtual ~ViewerSDL();
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12 SDL_Surface *screen;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 SDL_Surface *bitmap;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15 /* override function */
728
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 507
diff changeset
16 Uint32 *video_init(TaskManager *manager, int bpp, int width, int height);
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 void clean_pixels();
728
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 507
diff changeset
18 void clear_screen();
4f77768d7a7f add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 507
diff changeset
19 void free_device();
984
df5185513c2d minor fix
root@henri.cr.ie.u-ryukyu.ac.jp
parents: 728
diff changeset
20 uint32_t* flip_screen(uint32_t *);
df5185513c2d minor fix
root@henri.cr.ie.u-ryukyu.ac.jp
parents: 728
diff changeset
21
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22 };
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
23
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
24 #endif