tweaked for amo parser implementation and testing
This commit is contained in:
@@ -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;
|
||||
|
3
main.cpp
3
main.cpp
@@ -1,4 +1,7 @@
|
||||
#include <iostream>
|
||||
#include <Collage/collage.h>
|
||||
|
||||
int main() {
|
||||
Model m = Model("chicken.amo");
|
||||
//Model::loadOBJ("chicken.amo");
|
||||
}
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user