Bullet Collision Detection & Physics Library
Classes | Macros | Enumerations | Functions | Variables
btSerializer.h File Reference
#include "btScalar.h"
#include "btHashMap.h"
#include <memory.h>
#include <string.h>
Include dependency graph for btSerializer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  btChunk
 
class  btSerializer
 
struct  btPointerUid
 
class  btDefaultSerializer
 The btDefaultSerializer is the main Bullet serialization class. More...
 

Macros

#define BT_HEADER_LENGTH   12
 
#define BT_MAKE_ID(a, b, c, d)   ( (int)(d)<<24 | (int)(c)<<16 | (b)<<8 | (a) )
 
#define BT_SOFTBODY_CODE   BT_MAKE_ID('S','B','D','Y')
 
#define BT_COLLISIONOBJECT_CODE   BT_MAKE_ID('C','O','B','J')
 
#define BT_RIGIDBODY_CODE   BT_MAKE_ID('R','B','D','Y')
 
#define BT_CONSTRAINT_CODE   BT_MAKE_ID('C','O','N','S')
 
#define BT_BOXSHAPE_CODE   BT_MAKE_ID('B','O','X','S')
 
#define BT_QUANTIZED_BVH_CODE   BT_MAKE_ID('Q','B','V','H')
 
#define BT_TRIANLGE_INFO_MAP   BT_MAKE_ID('T','M','A','P')
 
#define BT_SHAPE_CODE   BT_MAKE_ID('S','H','A','P')
 
#define BT_ARRAY_CODE   BT_MAKE_ID('A','R','A','Y')
 
#define BT_SBMATERIAL_CODE   BT_MAKE_ID('S','B','M','T')
 
#define BT_SBNODE_CODE   BT_MAKE_ID('S','B','N','D')
 
#define BT_DYNAMICSWORLD_CODE   BT_MAKE_ID('D','W','L','D')
 
#define BT_DNA_CODE   BT_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

int btStrLen (const char *str)
 

Variables

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

Macro Definition Documentation

#define BT_ARRAY_CODE   BT_MAKE_ID('A','R','A','Y')

Definition at line 121 of file btSerializer.h.

#define BT_BOXSHAPE_CODE   BT_MAKE_ID('B','O','X','S')

Definition at line 117 of file btSerializer.h.

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

Definition at line 114 of file btSerializer.h.

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

Definition at line 116 of file btSerializer.h.

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

Definition at line 125 of file btSerializer.h.

#define BT_DYNAMICSWORLD_CODE   BT_MAKE_ID('D','W','L','D')

Definition at line 124 of file btSerializer.h.

#define BT_HEADER_LENGTH   12

Definition at line 106 of file btSerializer.h.

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

Definition at line 110 of file btSerializer.h.

#define BT_QUANTIZED_BVH_CODE   BT_MAKE_ID('Q','B','V','H')

Definition at line 118 of file btSerializer.h.

#define BT_RIGIDBODY_CODE   BT_MAKE_ID('R','B','D','Y')

Definition at line 115 of file btSerializer.h.

#define BT_SBMATERIAL_CODE   BT_MAKE_ID('S','B','M','T')

Definition at line 122 of file btSerializer.h.

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

Definition at line 123 of file btSerializer.h.

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

Definition at line 120 of file btSerializer.h.

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

Definition at line 113 of file btSerializer.h.

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

Definition at line 119 of file btSerializer.h.

Enumeration Type Documentation

Enumerator
BT_SERIALIZE_NO_BVH 
BT_SERIALIZE_NO_TRIANGLEINFOMAP 
BT_SERIALIZE_NO_DUPLICATE_ASSERT 

Definition at line 61 of file btSerializer.h.

Function Documentation

int btStrLen ( const char *  str)
inline

Definition at line 35 of file btSerializer.h.

Variable Documentation

int sBulletDNAlen

Definition at line 495 of file btSerializer.cpp.

int sBulletDNAlen64

Definition at line 991 of file btSerializer.cpp.

char sBulletDNAstr[]

only the 32bit versions for now

Definition at line 1 of file btSerializer.cpp.

char sBulletDNAstr64[]

Definition at line 497 of file btSerializer.cpp.