Improve the loading of serialized Bullet files, so that

after 'loadFileFromMemory' you can save the existing memory back to disk converted to native architecture endianness.
Fixed a bug that prevented big endian machines to load cloth data (due to wrong endian swap of pointer array)
Also improved the 'preswap' so that you can swap endianness on big endian machines (to little endian)
This commit is contained in:
erwin.coumans
2012-11-10 00:51:51 +00:00
parent f35621eb01
commit c4db79791c
5 changed files with 90 additions and 18 deletions

View File

@@ -155,7 +155,8 @@ namespace bParse {
return mVersion;
}
//pre-swap the endianness, so that data loaded on a target with different endianness doesn't need to be swapped
void preSwap(const char* fileName);
void preSwap();
void writeFile(const char* fileName);
};
}