facecam2d/src/main.cpp
Epicalert 4770c96d92
Add support for model files
Model files are zip archives with a "model.toml" file at the root describing
the model and all its textures.
2021-02-04 22:58:03 +08:00

36 lines
644 B
C++

#include <graphics.hpp>
#include <cv.hpp>
#include <paths.hpp>
#include <args.hpp>
#include <config.hpp>
#include <model.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();
//Model model(resolvePath("models/test.fma").c_str());
initCV();
while (true) {
cvFrame();
graphicsFrame();
#ifndef __APPLE__
cvShowFrame();
#endif
}
}