more work on serialization (work-in-progress)

This commit is contained in:
erwin.coumans
2010-01-22 03:36:58 +00:00
parent e899845fc1
commit 76eccc39fc
10 changed files with 208 additions and 125 deletions

View File

@@ -61,8 +61,30 @@ public:
return "MultiSphere";
}
virtual int calculateSerializeBufferSize();
///fills the dataBuffer and returns the struct name (and 0 on failure)
virtual const char* serialize(void* dataBuffer, btDefaultSerializer* serializer) const;
};
struct btMultiSphereShapeData
{
btConvexInternalShapeData m_convexInternalShapeData;
btVector3Data *m_localPositionArrayPtr;
btScalar *m_radiArrayPtr;
int m_localPositionArraySize;
int m_radiArraySize;
};
SIMD_FORCE_INLINE int btMultiSphereShape::calculateSerializeBufferSize()
{
return sizeof(btMultiSphereShapeData);
}
#endif //MULTI_SPHERE_MINKOWSKI_H