Small OpenGL based c++ rendering library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

menumanager.h 515B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __MENUMANAGER_H
  2. #define __MENUMANAGER_H
  3. #include <vector>
  4. #include "../glfontengine.h"
  5. #include "menumenu.h"
  6. namespace segl {
  7. class MenuManager {
  8. private:
  9. MenuMenu *aktuell;
  10. std::vector<MenuMenu*> menus;
  11. public:
  12. MenuManager();
  13. void addMenu(MenuMenu*);
  14. bool changeMenu(MenuMenu*);
  15. const MenuMenu* getMenu();
  16. void render();
  17. void up();
  18. void down();
  19. void left();
  20. void right();
  21. void select();
  22. void charInput(char c);
  23. void reset();
  24. };
  25. } // namespace segl
  26. #endif