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:
@@ -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);
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user