Main.c 890 B

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