Blender V2.61 - r43446
Classes | Defines | Enumerations | Functions | Variables

btSerializer.h File Reference

#include "btScalar.h"
#include "btStackAlloc.h"
#include "btHashMap.h"
#include <memory.h>
#include <string.h>

Go to the source code of this file.

Classes

class  btChunk
class  btSerializer
struct  btPointerUid
class  btDefaultSerializer

Defines

#define BT_HEADER_LENGTH   12
#define MAKE_ID(a, b, c, d)   ( (int)(d)<<24 | (int)(c)<<16 | (b)<<8 | (a) )
#define BT_SOFTBODY_CODE   MAKE_ID('S','B','D','Y')
#define BT_COLLISIONOBJECT_CODE   MAKE_ID('C','O','B','J')
#define BT_RIGIDBODY_CODE   MAKE_ID('R','B','D','Y')
#define BT_CONSTRAINT_CODE   MAKE_ID('C','O','N','S')
#define BT_BOXSHAPE_CODE   MAKE_ID('B','O','X','S')
#define BT_QUANTIZED_BVH_CODE   MAKE_ID('Q','B','V','H')
#define BT_TRIANLGE_INFO_MAP   MAKE_ID('T','M','A','P')
#define BT_SHAPE_CODE   MAKE_ID('S','H','A','P')
#define BT_ARRAY_CODE   MAKE_ID('A','R','A','Y')
#define BT_SBMATERIAL_CODE   MAKE_ID('S','B','M','T')
#define BT_SBNODE_CODE   MAKE_ID('S','B','N','D')
#define BT_DNA_CODE   MAKE_ID('D','N','A','1')

Enumerations

enum  btSerializationFlags { BT_SERIALIZE_NO_BVH = 1, BT_SERIALIZE_NO_TRIANGLEINFOMAP = 2, BT_SERIALIZE_NO_DUPLICATE_ASSERT = 4 }

Functions

SIMD_FORCE_INLINE int btStrLen (const char *str)

Variables

unsigned char sBulletDNAstr []
 only the 32bit versions for now
int sBulletDNAlen
unsigned char sBulletDNAstr64 []
int sBulletDNAlen64

Define Documentation

#define BT_ARRAY_CODE   MAKE_ID('A','R','A','Y')
#define BT_BOXSHAPE_CODE   MAKE_ID('B','O','X','S')

Definition at line 118 of file btSerializer.h.

#define BT_COLLISIONOBJECT_CODE   MAKE_ID('C','O','B','J')

Definition at line 115 of file btSerializer.h.

#define BT_CONSTRAINT_CODE   MAKE_ID('C','O','N','S')

Definition at line 117 of file btSerializer.h.

Referenced by btDiscreteDynamicsWorld::serializeRigidBodies().

#define BT_DNA_CODE   MAKE_ID('D','N','A','1')

Definition at line 125 of file btSerializer.h.

Referenced by btDefaultSerializer::writeDNA().

#define BT_HEADER_LENGTH   12
#define BT_QUANTIZED_BVH_CODE   MAKE_ID('Q','B','V','H')

Definition at line 119 of file btSerializer.h.

#define BT_RIGIDBODY_CODE   MAKE_ID('R','B','D','Y')
#define BT_SBMATERIAL_CODE   MAKE_ID('S','B','M','T')

Definition at line 123 of file btSerializer.h.

Referenced by btSoftBody::serialize().

#define BT_SBNODE_CODE   MAKE_ID('S','B','N','D')

Definition at line 124 of file btSerializer.h.

Referenced by btSoftBody::serialize().

#define BT_SHAPE_CODE   MAKE_ID('S','H','A','P')

Definition at line 121 of file btSerializer.h.

Referenced by btCollisionShape::serializeSingleShape().

#define BT_SOFTBODY_CODE   MAKE_ID('S','B','D','Y')

Definition at line 114 of file btSerializer.h.

Referenced by btSoftRigidDynamicsWorld::serializeSoftBodies().

#define BT_TRIANLGE_INFO_MAP   MAKE_ID('T','M','A','P')

Definition at line 120 of file btSerializer.h.

#define MAKE_ID (   a,
  b,
  c,
 
)    ( (int)(d)<<24 | (int)(c)<<16 | (b)<<8 | (a) )

Definition at line 111 of file btSerializer.h.


Enumeration Type Documentation

Enumerator:
BT_SERIALIZE_NO_BVH 
BT_SERIALIZE_NO_TRIANGLEINFOMAP 
BT_SERIALIZE_NO_DUPLICATE_ASSERT 

Definition at line 62 of file btSerializer.h.


Function Documentation

SIMD_FORCE_INLINE int btStrLen ( const char *  str)

Definition at line 36 of file btSerializer.h.

References len().

Referenced by btDefaultSerializer::serializeName().


Variable Documentation

Definition at line 416 of file btSerializer.cpp.

Referenced by btDefaultSerializer::btDefaultSerializer().

Definition at line 832 of file btSerializer.cpp.

Referenced by btDefaultSerializer::btDefaultSerializer().

unsigned char sBulletDNAstr[]

only the 32bit versions for now

Definition at line 1 of file btSerializer.cpp.

Referenced by btDefaultSerializer::btDefaultSerializer().

unsigned char sBulletDNAstr64[]

Definition at line 417 of file btSerializer.cpp.

Referenced by btDefaultSerializer::btDefaultSerializer().