tweaked for amo parser implementation and testing
This commit is contained in:
@@ -24,6 +24,7 @@ class Model {
|
|||||||
protected:
|
protected:
|
||||||
void load(const std::string& file);
|
void load(const std::string& file);
|
||||||
void loadOBJ(const std::string& filename);
|
void loadOBJ(const std::string& filename);
|
||||||
|
void loadAMO(const std::string& filename);
|
||||||
public:
|
public:
|
||||||
ModelType type;
|
ModelType type;
|
||||||
std::vector<Vertex> vertices;
|
std::vector<Vertex> vertices;
|
||||||
@@ -37,4 +38,4 @@ class SkeletalModel : public Model {
|
|||||||
public:
|
public:
|
||||||
std::vector<SkeletalVertex> vertices;
|
std::vector<SkeletalVertex> vertices;
|
||||||
Bone boneMap;
|
Bone boneMap;
|
||||||
};
|
};
|
||||||
|
3
main.cpp
3
main.cpp
@@ -1,4 +1,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <Collage/collage.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
Model m = Model("chicken.amo");
|
||||||
|
//Model::loadOBJ("chicken.amo");
|
||||||
}
|
}
|
||||||
|
@@ -3,6 +3,8 @@
|
|||||||
void Model::load(const std::string& file) {
|
void Model::load(const std::string& file) {
|
||||||
if (file.ends_with(".obj"))
|
if (file.ends_with(".obj"))
|
||||||
loadOBJ(file);
|
loadOBJ(file);
|
||||||
|
if (file.ends_with(".amo"))
|
||||||
|
loadAMO(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
Model::Model(const std::string &file) {
|
Model::Model(const std::string &file) {
|
||||||
|
Reference in New Issue
Block a user