annotate Renderer/test_render/viewerSDL.h @ 503:516d5c91d5b4 draft double-linked-task-list

comment
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 11 Oct 2009 19:35:33 +0900
parents 15bfacccde99
children
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
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
4 #ifndef INCLUDED_VIEWER
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5 # include "viewer.h"
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
6 #endif
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8 class ViewerSDL : public Viewer {
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
9 public:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
10 ViewerSDL(int bpp, int width, int height, int spenum)
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11 :Viewer(bpp, width, height, spenum) {}
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 SDL_Surface *screen;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14 SDL_Surface *bitmap;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 /* override function */
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 void video_init(void);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18 void clean_pixels();
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
19 void run_loop(void);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20 void run_finish(void);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
21 };
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
23 #endif