2020-12-31 12:58:39 +00:00
|
|
|
#include <graphics.hpp>
|
2021-01-06 00:10:55 +00:00
|
|
|
#include <cv.hpp>
|
2021-01-17 13:36:38 +00:00
|
|
|
#include <paths.hpp>
|
2021-01-26 15:36:22 +00:00
|
|
|
#include <args.hpp>
|
2021-01-29 07:15:32 +00:00
|
|
|
#include <config.hpp>
|
2021-02-04 14:58:03 +00:00
|
|
|
#include <model.hpp>
|
2021-07-01 14:47:13 +00:00
|
|
|
#include <configfile.hpp>
|
2020-12-31 12:58:39 +00:00
|
|
|
|
2021-01-01 18:55:12 +00:00
|
|
|
#include <iostream>
|
2021-01-22 11:48:55 +00:00
|
|
|
#include <cstring>
|
2021-01-01 18:55:12 +00:00
|
|
|
|
2021-01-22 11:48:55 +00:00
|
|
|
int main (int argc, char** argv) {
|
2021-07-01 14:47:13 +00:00
|
|
|
std::cout << PROJECT_NAME " is starting..." << std::endl;
|
|
|
|
|
|
|
|
initPrefixes();
|
2021-07-02 16:19:14 +00:00
|
|
|
makePaths();
|
2021-07-01 14:47:13 +00:00
|
|
|
|
|
|
|
// load config file and apply it
|
|
|
|
configFileOpen(&optData);
|
|
|
|
|
2021-06-13 11:02:57 +00:00
|
|
|
#ifndef _WIN32
|
2021-07-01 14:47:13 +00:00
|
|
|
// parse arguments and apply them
|
2021-01-26 15:36:22 +00:00
|
|
|
argp_parse(&argp, argc, argv, 0, 0, 0);
|
2021-06-09 17:38:03 +00:00
|
|
|
#endif
|
2021-01-26 15:36:22 +00:00
|
|
|
|
2021-01-17 13:36:38 +00:00
|
|
|
|
|
|
|
std::cout << "Custom asset prefix: " << prefixCustom << std::endl;
|
|
|
|
std::cout << "Default asset prefix: " << prefixDefault << std::endl;
|
|
|
|
|
2020-12-31 12:58:39 +00:00
|
|
|
initGraphics();
|
2021-02-04 14:58:03 +00:00
|
|
|
|
|
|
|
//Model model(resolvePath("models/test.fma").c_str());
|
2021-01-26 15:36:22 +00:00
|
|
|
initCV();
|
2020-12-31 12:58:39 +00:00
|
|
|
|
2021-02-04 14:58:03 +00:00
|
|
|
|
2021-01-06 00:10:55 +00:00
|
|
|
while (true) {
|
|
|
|
cvFrame();
|
2020-12-31 12:58:39 +00:00
|
|
|
|
2021-01-06 00:10:55 +00:00
|
|
|
graphicsFrame();
|
2020-12-31 12:58:39 +00:00
|
|
|
|
2021-01-15 11:03:48 +00:00
|
|
|
#ifndef __APPLE__
|
2021-01-06 00:10:55 +00:00
|
|
|
cvShowFrame();
|
2021-01-15 11:03:48 +00:00
|
|
|
#endif
|
2020-12-31 12:58:39 +00:00
|
|
|
}
|
|
|
|
}
|