annotate Renderer/Engine/viewerSDL.h @ 841:8d702fc5d77a draft

dynamic loading demo bug fix
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Wed, 02 Jun 2010 01:39:15 +0900
parents c7afc21e448d
children dbebc7afd08e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 #ifndef INCLUDED_VIEWER_SDL
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2 #define INCLUDED_VIEWER_SDL
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
4 #include "ViewerDevice.h"
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
6 class ViewerSDL : public ViewerDevice {
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7 public:
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
8 ViewerSDL(TaskManager* manager) {};
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
9 ViewerSDL();
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
10 virtual ~ViewerSDL();
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12 SDL_Surface *screen;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 SDL_Surface *bitmap;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15 /* override function */
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
16 Uint32 *video_init(TaskManager *manager, int bpp, int width, int height);
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 void clean_pixels();
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
18 void clear_screen();
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
19 void free_device();
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20 };
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
21
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22 #endif