Main.c 811 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #include <core/Logger.h>
  2. #include "Tests.h"
  3. // #include "core/Window.h"
  4. /*static int ticks = 40;
  5. static bool isRunning() {
  6. return true;
  7. // return !Window::shouldClose() && ticks > 0;
  8. }
  9. static void tick() {
  10. ticks -= ticks > 0;
  11. }
  12. static void render(float) {
  13. }*/
  14. int main(int argAmount, char** args) {
  15. (void)args;
  16. if(argAmount < 2) {
  17. CORE_LOG_ERROR("missing path to images");
  18. return 0;
  19. }
  20. coreTestImageReader(args[1]);
  21. coreTestNetwork();
  22. // Window::Options options(4, 3, {800, 480}, false, "Test");
  23. // Error error = Window::open(options);
  24. // if(error.has()) {
  25. // LOG_ERROR(error.message);
  26. // return 0;
  27. // }
  28. // Window::show();
  29. // Window::run<isRunning, tick, render>(50'000'000);
  30. // Window::close();
  31. return 0;
  32. }