app.h 671 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * 2D Physic Engine
  3. * app.h:
  4. * Based on pikuma.com Learn Game Physics Engine Programming course.
  5. * Copyright (c) 2022 986-Studio. All rights reserved.
  6. *
  7. * Created by Manoël Trapier on 07/06/2022.
  8. */
  9. #ifndef PHYSICENGINE_APP_H
  10. #define PHYSICENGINE_APP_H
  11. #include <physics/particle.h>
  12. class application
  13. {
  14. private:
  15. bool running;
  16. particle *part;
  17. public:
  18. application() : running(false) {};
  19. ~application() = default;
  20. void parseParameters(int argc, char *argv[]);
  21. bool isRunning() { return this->running; }
  22. void setup();
  23. void input();
  24. void update();
  25. void render();
  26. void destroy();
  27. };
  28. #endif /* PHYSICENGINE_APP_H */