4 #ifndef MeshStrider_h__
5 #define MeshStrider_h__
7 #include <btBulletDynamicsCommon.h>
9 #include <OgreSubMesh.h>
21 virtual void getLockedVertexIndexBase(
unsigned char **vertexbase,
int& numverts,PHY_ScalarType& type,
int& stride,
unsigned char **indexbase,
int & indexstride,
int& numfaces,PHY_ScalarType& indicestype,
int subpart=0);
22 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;
34 #endif // MeshStrider_h__
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
Definition: meshstrider.cpp:11
virtual void preallocateVertices(int numverts)
Definition: meshstrider.cpp:100
virtual void unLockReadOnlyVertexBase(int subpart) const
Definition: meshstrider.cpp:77
void set(Ogre::Mesh *m)
Definition: meshstrider.h:17
Ogre::Mesh * mMesh
Definition: meshstrider.h:31
virtual void preallocateIndices(int numindices)
Definition: meshstrider.cpp:104
virtual void unLockVertexBase(int subpart)
Definition: meshstrider.cpp:96
Shares vertices/indexes between Ogre and Bullet.
Definition: meshstrider.h:12
virtual void getLockedVertexIndexBase(unsigned char **vertexbase, int &numverts, PHY_ScalarType &type, int &stride, unsigned char **indexbase, int &indexstride, int &numfaces, PHY_ScalarType &indicestype, int subpart=0)
Definition: meshstrider.cpp:73
virtual int getNumSubParts() const
Definition: meshstrider.cpp:6
MeshStrider(Ogre::Mesh *m=0)
Definition: meshstrider.h:15