#ifndef APPLICATION_H #define APPLICATION_H #include #include #include #include "stage.h" #include "bulletpattern.h" #include "shader.h" #include "texture.h" class Application { private: SDL_Surface *surface; bool please_quit; bool paused; unsigned int lasttick; unsigned int frames; unsigned int lastframes; float fps; FTFont* font; Texture* background; public: Stage* stage; Application(); ~Application(); void run(); void quit(); protected: virtual void event_keypress(SDLKey key); void main_loop(unsigned int tick); }; #endif