Main.cpp 471 B

1234567891011121314151617181920212223242526
  1. #include <cstdio>
  2. #include "rendering/Window.h"
  3. static void tick() {
  4. }
  5. static void render(float lag) {
  6. (void)lag;
  7. }
  8. static bool shouldRun() {
  9. return !Window::shouldClose();
  10. }
  11. int main() {
  12. Error e = Window::open(
  13. Window::Options(4, 6, IntVector2(400, 300), false, "Catan Simulator"));
  14. if(e.has()) {
  15. e.message.printLine();
  16. return 0;
  17. }
  18. Window::show();
  19. Window::run<shouldRun, tick, render>(10'000'000);
  20. return 0;
  21. }