29 const unsigned char* vertexbase;
30 const unsigned char* indexbase;
77 unsigned short int*
tri_indices = (
unsigned short int*)(indexbase +
gfxindex * indexstride);
134 unsigned short int*
tri_indices = (
unsigned short int*)(indexbase +
gfxindex * indexstride);
229 const unsigned char* vertexbase;
230 const unsigned char* indexbase;
245 memPtr->m_numVertices = numverts;
284 unsigned short int*
tri_indices = (
unsigned short int*)(indexbase +
gfxindex * indexstride);
334 for (
int i = 0; i < numverts; i++)
353 for (
int i = 0; i < numverts; i++)
355 double*
graphicsbase = (
double*)(vertexbase + i * stride);
379 return "btStridingMeshInterfaceData";
PHY_ScalarType
PHY_ScalarType enumerates possible scalar types.
const T & btMax(const T &a, const T &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
virtual void internalProcessTriangleIndex(btVector3 *triangle, int partId, int triangleIndex)=0
virtual ~btStridingMeshInterface()
void calculateAabbBruteForce(btVector3 &aabbMin, btVector3 &aabbMax)
brute force method to calculate aabb
const btVector3 & getScaling() const
virtual void getLockedReadOnlyVertexIndexBase(const unsigned char **vertexbase, int &numverts, PHY_ScalarType &type, int &stride, const unsigned char **indexbase, int &indexstride, int &numfaces, PHY_ScalarType &indicestype, int subpart=0) const =0
virtual int getNumSubParts() const =0
getNumSubParts returns the number of separate subparts each subpart has a continuous array of vertice...
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
virtual void unLockReadOnlyVertexBase(int subpart) const =0
virtual void InternalProcessAllTriangles(btInternalTriangleIndexCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
btVector3 can be used to represent 3D points and vectors.
void setMax(const btVector3 &other)
Set each element to the max of the current values and the values of another btVector3.
void serializeFloat(struct btVector3FloatData &dataOut) const
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
void setMin(const btVector3 &other)
Set each element to the min of the current values and the values of another btVector3.
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64