Model files are zip archives with a "model.toml" file at the root describing the model and all its textures.
36 lines
644 B
C++
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
|
|
}
|
|
}
|