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