|
@@ -109,28 +109,6 @@ ObjFile::Model *ObjFileParser::GetModel() const {
|
|
return m_pModel;
|
|
return m_pModel;
|
|
}
|
|
}
|
|
|
|
|
|
-/*void ignoreNewLines(IOStreamBuffer<char> &streamBuffer, std::vector<char> &buffer)
|
|
|
|
-{
|
|
|
|
- auto curPosition = buffer.begin();
|
|
|
|
- do
|
|
|
|
- {
|
|
|
|
- while (*curPosition!='\n'&&*curPosition!='\\')
|
|
|
|
- {
|
|
|
|
- ++curPosition;
|
|
|
|
- }
|
|
|
|
- if (*curPosition=='\\')
|
|
|
|
- {
|
|
|
|
- std::vector<char> tempBuf;
|
|
|
|
- do
|
|
|
|
- {
|
|
|
|
- streamBuffer.getNextDataLine(tempBuf, '\\' );
|
|
|
|
- } while (tempBuf[0]=='\n');
|
|
|
|
- *curPosition = ' ';
|
|
|
|
- std::copy(tempBuf.cbegin(), tempBuf.cend(), ++curPosition);
|
|
|
|
- }
|
|
|
|
- } while (*curPosition!='\n');
|
|
|
|
-}*/
|
|
|
|
-
|
|
|
|
void ObjFileParser::parseFile( IOStreamBuffer<char> &streamBuffer ) {
|
|
void ObjFileParser::parseFile( IOStreamBuffer<char> &streamBuffer ) {
|
|
// only update every 100KB or it'll be too slow
|
|
// only update every 100KB or it'll be too slow
|
|
//const unsigned int updateProgressEveryBytes = 100 * 1024;
|
|
//const unsigned int updateProgressEveryBytes = 100 * 1024;
|