facecam2d/src/main.cpp

31 lines
543 B
C++
Raw Normal View History

2020-12-31 12:58:39 +00:00
#include <graphics.hpp>
2021-01-06 00:10:55 +00:00
#include <cv.hpp>
#include <paths.hpp>
#include <args.hpp>
2020-12-31 12:58:39 +00:00
#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;
2020-12-31 12:58:39 +00:00
initGraphics();
initCV();
2020-12-31 12:58:39 +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
#ifndef __APPLE__
2021-01-06 00:10:55 +00:00
cvShowFrame();
#endif
2020-12-31 12:58:39 +00:00
}
}