Added hex digit to TFace

This commit is contained in:
2017-05-06 17:54:48 -07:00
parent dd5da5d4a7
commit e05e86fe67
2 changed files with 3 additions and 1 deletions

View File

@ -129,7 +129,8 @@ vector<struct TFace> parse_face(ifstream &f) {
if (!hex && fdata.length() > 1) {
if (SECONDCH(fdata) == 'x') {
// this is the unidentified hex digit.
// just it signify the texture at the end.
// out of range for stoi
x.hex = strtoul(fdata.c_str(), NULL, 16);
hex = true;
}
} else if (!hex) {

View File

@ -18,6 +18,7 @@ struct TFace
float m_fYScale;
float m_fRotation;
std::vector<int> m_Indices;
unsigned long hex;
std::string m_Material;
};