/* * Example menu universe * This universe is run when the application starts (in this demo) by * main-universe. * * It is supposed to present a menu before the main gameplay (which is supposed to be * implemented in game-universe) is accessed. * * To switch between universes, set next_universe to one of the universes listed * in universes-enum.h * */ #ifndef MENU_UNIVERSE_H #define MENU_UNIVERSE_H #include #include #include #include #include #include #include #include "../motorj/support.h" #include "../motorj/cam_ctl.h" #include "../motorj/events.h" #include "../motorj/app.h" #include "../motorj/objects.h" #include "../motorj/universe-class.h" #include "../motorj/textures.h" #include "../motorj/billboard-class.h" #include "../motorj/sjuengine-class.h" class MenuUniverse : public Universe { public: void Init(void); void ProcessEvent(s_event & event); void Update(float t_elapsed); void Redraw(void); void Cleanup(void); bool mustCleanup; bool mustInit; GLuint snowTex; GLuint bgTex; mjBillboard* b; mjPhysics p; std::list snow; private: cam_ctl camera; }; #endif