123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #include <core/Logger.h>
- #include <core/Utility.h>
- #include "Tests.h"
- // #include "core/Window.h"
- /*static int ticks = 40;
- static bool isRunning() {
- return true;
- // return !Window::shouldClose() && ticks > 0;
- }
- static void tick() {
- ticks -= ticks > 0;
- }
- static void render(float) {
- }*/
- int main(int argAmount, char** args) {
- (void)args;
- if(argAmount < 2) {
- CORE_LOG_ERROR("missing path to images");
- return 0;
- }
- coreTestImageReader(args[1]);
- coreTestNetwork();
- coreFinalizeTests();
- // Window::Options options(4, 3, {800, 480}, false, "Test");
- // Error error = Window::open(options);
- // if(error.has()) {
- // LOG_ERROR(error.message);
- // return 0;
- // }
- // Window::show();
- // Window::run<isRunning, tick, render>(50'000'000);
- // Window::close();
- corePrintMemoryReport();
- return 0;
- }
|