Changeset 7983 for code/branches/kicklib/src/external/bullet/BulletCollision/CollisionShapes/btStridingMeshInterface.h
- Timestamp:
- Feb 27, 2011, 7:43:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/src/external/bullet/BulletCollision/CollisionShapes/btStridingMeshInterface.h
r5781 r7983 1 1 /* 2 2 Bullet Continuous Collision Detection and Physics Library 3 Copyright (c) 2003-200 6 Erwin Coumans http://continuousphysics.com/Bullet/3 Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org 4 4 5 5 This software is provided 'as-is', without any express or implied warranty. … … 20 20 #include "btTriangleCallback.h" 21 21 #include "btConcaveShape.h" 22 23 22 24 23 25 … … 90 92 } 91 93 92 94 virtual int calculateSerializeBufferSize() const; 95 96 ///fills the dataBuffer and returns the struct name (and 0 on failure) 97 virtual const char* serialize(void* dataBuffer, btSerializer* serializer) const; 98 93 99 94 100 }; 95 101 102 struct btIntIndexData 103 { 104 int m_value; 105 }; 106 107 struct btShortIntIndexData 108 { 109 short m_value; 110 char m_pad[2]; 111 }; 112 113 struct btShortIntIndexTripletData 114 { 115 short m_values[3]; 116 char m_pad[2]; 117 }; 118 119 ///do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 120 struct btMeshPartData 121 { 122 btVector3FloatData *m_vertices3f; 123 btVector3DoubleData *m_vertices3d; 124 125 btIntIndexData *m_indices32; 126 btShortIntIndexTripletData *m_3indices16; 127 128 btShortIntIndexData *m_indices16;//backwards compatibility 129 130 int m_numTriangles;//length of m_indices = m_numTriangles 131 int m_numVertices; 132 }; 133 134 135 ///do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 136 struct btStridingMeshInterfaceData 137 { 138 btMeshPartData *m_meshPartsPtr; 139 btVector3FloatData m_scaling; 140 int m_numMeshParts; 141 char m_padding[4]; 142 }; 143 144 145 146 147 SIMD_FORCE_INLINE int btStridingMeshInterface::calculateSerializeBufferSize() const 148 { 149 return sizeof(btStridingMeshInterfaceData); 150 } 151 152 153 96 154 #endif //STRIDING_MESHINTERFACE_H
Note: See TracChangeset
for help on using the changeset viewer.