application.h 411 B

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