tweaked for amo parser implementation and testing

This commit is contained in:
maxbyte9p
2024-05-16 13:57:30 -04:00
parent 00ccfcce4d
commit 37d81e9c0f
3 changed files with 7 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ class Model {
protected:
void load(const std::string& file);
void loadOBJ(const std::string& filename);
void loadAMO(const std::string& filename);
public:
ModelType type;
std::vector<Vertex> vertices;

View File

@@ -1,4 +1,7 @@
#include <iostream>
#include <Collage/collage.h>
int main() {
Model m = Model("chicken.amo");
//Model::loadOBJ("chicken.amo");
}

View File

@@ -3,6 +3,8 @@
void Model::load(const std::string& file) {
if (file.ends_with(".obj"))
loadOBJ(file);
if (file.ends_with(".amo"))
loadAMO(file);
}
Model::Model(const std::string &file) {