readable models via the new reader (verts, faces, bones...)

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 34f1f6293a
commit dba02e7944
13 changed files with 62 additions and 460 deletions
+16 -5
View File
@@ -34,13 +34,24 @@ namespace vb01{
}
}
int getCharId(char ch){
int getCharId(string line, char ch, bool reverse){
int charId = -1;
for(int i = 0; i < line.length(); i++)
if(line[i] == ch){
colonId = i;
break;
if(!reverse){
for(int i = 0; i < line.length(); i++){
if(line[i] == ch){
charId = i;
break;
}
}
}
else{
for(int i = line.length() - 1; i >= 0; i--){
if(line[i] == ch){
charId = i;
break;
}
}
}
return charId;
}
}