removed more old code
This commit is contained in:
39
src/amo.cpp
39
src/amo.cpp
@@ -319,39 +319,6 @@ std::vector<Vertice> parse_v(std::istringstream& s, std::ifstream& f) {
|
||||
return v;
|
||||
}
|
||||
|
||||
/*
|
||||
// Parse Vertices
|
||||
std::vector<std::tuple<float, float, float>> parse_v(std::istringstream& s, std::ifstream& f) {
|
||||
// Get vertices count
|
||||
int vcnt;
|
||||
s >> vcnt;
|
||||
std::cout << "v " << vcnt << std::endl;
|
||||
|
||||
// Store our vertices return later
|
||||
std::vector<std::tuple<float, float, float>> v;
|
||||
|
||||
// Parse lines until vcnt
|
||||
int i;
|
||||
for (i=0; i<vcnt; i++) {
|
||||
std::string l;
|
||||
|
||||
if (getline(f, l)) {
|
||||
std::istringstream stream(l);
|
||||
float x = 0;
|
||||
float y = 0;
|
||||
float z = 0;
|
||||
stream >> x >> y >> z;
|
||||
// For debugging -> std::cout << l << std::endl;
|
||||
|
||||
v.push_back({x, y, z});
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return v;
|
||||
}*/
|
||||
|
||||
// Parse Animated Object
|
||||
std::tuple<std::string, int> parse_ao(std::istringstream& s) {
|
||||
std::string name;
|
||||
@@ -379,12 +346,6 @@ void Model::loadAMO(const std::string& filename) {
|
||||
r = parse_ao(stream);
|
||||
std::cout << get<0>(r) << " " << get<1>(r) << std::endl;
|
||||
} else if (prefix == "v") {
|
||||
/*std::vector<std::tuple<float, float, float>> v;
|
||||
v = parse_v(stream, file);
|
||||
for (const std::tuple<float, float, float>& i : v) {
|
||||
std::cout << get<0>(i) << " " << get<1>(i) << " " << get<2>(i) << std::endl;
|
||||
}*/
|
||||
|
||||
std::vector<Vertice> v;
|
||||
v = parse_v(stream, file);
|
||||
for (const Vertice& i: v) {
|
||||
|
Reference in New Issue
Block a user