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.

31 lines
374B

  1. #pragma once
  2. #include "common.hpp"
  3. namespace rack {
  4. namespace event {
  5. struct State;
  6. }
  7. struct Scene;
  8. struct Engine;
  9. struct Window;
  10. /** Contains the application state */
  11. struct Context {
  12. event::State *event = NULL;
  13. Scene *scene = NULL;
  14. Engine *engine = NULL;
  15. Window *window = NULL;
  16. };
  17. /** Returns the global context */
  18. Context *context();
  19. } // namespace rack