Add basic support for the IZWARE NENDO file format (extension: ndo). The loader has been tested with files in format version 1.0, 1.1 and 1.2. Materials and textures are read but ignored for now.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@791 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2010-08-09 08:24:16 +00:00
parent 8fef884dbc
commit 81bebcd0ec
8 changed files with 439 additions and 20 deletions

View File

@@ -113,8 +113,9 @@ void BaseImporter::SetupProperties(const Importer* pImp)
boost::scoped_array<char> _buffer (new char[searchBytes+1 /* for the '\0' */]);
char* buffer = _buffer.get();
unsigned int read = (unsigned int)pStream->Read(buffer,1,searchBytes);
if (!read)return false;
const unsigned int read = pStream->Read(buffer,1,searchBytes);
if (!read)
return false;
for (unsigned int i = 0; i < read;++i)
buffer[i] = ::tolower(buffer[i]);