application.h 330 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <SDL3/SDL_events.h>
  3. struct SDL_Renderer;
  4. namespace testbed {
  5. struct config;
  6. struct context;
  7. class application {
  8. void update();
  9. void draw(const context &) const;
  10. void input();
  11. public:
  12. application();
  13. ~application();
  14. int run();
  15. private:
  16. bool quit;
  17. };
  18. } // namespace testbed