fixes in serialization, should fix non-Windows platforms.

This commit is contained in:
erwin.coumans
2010-01-30 21:31:56 +00:00
parent 4fcea85c01
commit f9ad5cf587
8 changed files with 62 additions and 343 deletions

View File

@@ -16,9 +16,9 @@ subject to the following restrictions:
#define TEST_SERIALIZATION 1
#ifdef BT_INTERNAL_UPDATE_SERIALIZATION_STRUCTURES
#define CREATE_NEW_BULLETFILE 1
#endif //BT_INTERNAL_UPDATE_SERIALIZATION_STRUCTURES
//#ifdef BT_INTERNAL_UPDATE_SERIALIZATION_STRUCTURES
//#define CREATE_NEW_BULLETFILE 1
//#endif //BT_INTERNAL_UPDATE_SERIALIZATION_STRUCTURES
///create 125 (5x5x5) dynamic object
#define ARRAY_SIZE_X 5
@@ -235,9 +235,14 @@ void SerializeDemo::initPhysics()
//now try again from the loaded file
setupEmptyDynamicsWorld();
printf("loading file\n");
btBulletWorldImporter* fileLoader = new btBulletWorldImporter(m_dynamicsWorld);
fileLoader->loadFile("testFile.bullet");
//fileLoader->setVerboseMode(true);
if (fileLoader->loadFile("testFile.bullet"))
{
printf("loaded fine\n");
}