283
|
1 #ifndef INCLUDED_VIEWER_SDL
|
|
2 #define INCLUDED_VIEWER_SDL
|
|
3
|
728
|
4 #include "ViewerDevice.h"
|
283
|
5
|
728
|
6 class ViewerSDL : public ViewerDevice {
|
283
|
7 public:
|
728
|
8 ViewerSDL(TaskManager* manager) {};
|
|
9 ViewerSDL();
|
|
10 virtual ~ViewerSDL();
|
283
|
11
|
|
12 SDL_Surface *screen;
|
|
13 SDL_Surface *bitmap;
|
|
14
|
|
15 /* override function */
|
728
|
16 Uint32 *video_init(TaskManager *manager, int bpp, int width, int height);
|
283
|
17 void clean_pixels();
|
728
|
18 void clear_screen();
|
|
19 void free_device();
|
984
|
20 uint32_t* flip_screen(uint32_t *);
|
|
21
|
283
|
22 };
|
|
23
|
|
24 #endif
|