#include <graphics.hpp>
#include <cv.hpp>
#include <paths.hpp>
#include <args.hpp>

#include <iostream>
#include <cstring>

int main (int argc, char** argv) {
	argp_parse(&argp, argc, argv, 0, 0, 0);

	std::cout << PROJECT_NAME " is starting..." << std::endl;

	initPrefixes();
	std::cout << "Custom asset prefix: " << prefixCustom << std::endl;
	std::cout << "Default asset prefix: " << prefixDefault << std::endl;

	initGraphics();
	initCV();

	while (true) {
		cvFrame();

		graphicsFrame();

#ifndef __APPLE__
		cvShowFrame();
#endif
	}
}