annotate TaskManager/Test/test_render/viewerSDL.h @ 186:06cdf8baa989 draft

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