annotate TaskManager/Test/test_render/viewerSDL.h @ 131:805d27efafd8

fix
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Tue, 25 Nov 2008 17:24:18 +0900
parents 5c194c71eca8
children 25c820b6060e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #ifndef INCLUDED_VIEWER_SDL
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #define INCLUDED_VIEWER_SDL
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #ifndef INCLUDED_VIEWER
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 # include "viewer.h"
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #endif
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 class ViewerSDL : public Viewer {
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 public:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 ViewerSDL(int bpp, int width, int height, int spenum)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11 :Viewer(bpp, width, height, spenum) {}
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13 SDL_Surface *screen;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 SDL_Surface *bitmap;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 /* override function */
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17 void video_init(void);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18 void clean_pixels();
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 void run_loop(void);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 void run_finish(void);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 };
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23 #endif