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.

app.hpp 486B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include "common.hpp"
  3. namespace rack {
  4. namespace event {
  5. struct State;
  6. }
  7. namespace history {
  8. struct State;
  9. }
  10. struct Scene;
  11. struct Engine;
  12. struct Window;
  13. /** Contains the application state */
  14. struct App {
  15. event::State *event = NULL;
  16. Scene *scene = NULL;
  17. Engine *engine = NULL;
  18. Window *window = NULL;
  19. history::State *history = NULL;
  20. App();
  21. ~App();
  22. };
  23. void appInit();
  24. void appDestroy();
  25. /** Returns the global context */
  26. App *app();
  27. } // namespace rack