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.

43 lines
536B

  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. struct PatchManager;
  14. /** Contains the application state */
  15. struct App {
  16. event::State *event = NULL;
  17. Scene *scene = NULL;
  18. Engine *engine = NULL;
  19. Window *window = NULL;
  20. history::State *history = NULL;
  21. PatchManager *patch = NULL;
  22. App();
  23. ~App();
  24. };
  25. void appInit();
  26. void appDestroy();
  27. /** Returns the global context */
  28. App *app();
  29. } // namespace rack