00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _FRZ_SDL_HPP_
00021 #define _FRZ_SDL_HPP_
00022
00023 #include "frz_system.hpp"
00024 #include "SDL.h"
00025
00026
00027 namespace Frz {
00028
00034 class SDLSystem : public System {
00036 SDL_Surface *screen;
00038 uint32_t _t0;
00039
00041 static void vsync();
00043 static bool test_exit();
00044
00045 public:
00055 SDLSystem(const char *title, Script &s, int width, int height, int videomode,
00056 uint32_t t0=0);
00057 virtual ~SDLSystem() {}
00058
00072 static int parseCmd(int argc, char **argv, int &width, int &height,
00073 int &videomode, uint32_t &t0);
00074
00076 int operator()();
00077 };
00078
00079
00080 };
00081
00082
00083
00084 #endif
00085