ode version compatibility

This commit is contained in:
David Rose 2009-02-17 20:45:32 +00:00
parent 5722e37160
commit fac9c4982d
2 changed files with 13 additions and 0 deletions

View File

@ -50,15 +50,19 @@ build_double1(const void* vertices, int vertex_stride, int vertex_count, const v
dGeomTriMeshDataBuildDouble1(_id, vertices, vertex_stride, vertex_count, indices, index_count, tri_stride, normals);
}
/*
INLINE void OdeTriMeshData::
build_simple(const dReal* vertices, int vertex_count, const int* indices, int index_count) {
dGeomTriMeshDataBuildSimple(_id, vertices, vertex_count, indices, index_count);
}
*/
/*
INLINE void OdeTriMeshData::
build_simple1(const dReal* vertices, int vertex_count, const int* indices, int index_count, const int* normals) {
dGeomTriMeshDataBuildSimple1(_id, vertices, vertex_count, indices, index_count, normals);
}
*/
INLINE void OdeTriMeshData::
preprocess() {

View File

@ -73,11 +73,20 @@ public:
INLINE void build_double1(const void* vertices, int vertex_stride, int vertex_count, \
const void* indices, int index_count, int tri_stride, \
const void* normals);
// Temporarily commenting these two out--ODE had an API change from
// (int *indices) to (dTriIndex *indices). But since there's no
// #define that indicates the ODE version, we don't have any way to
// automatically put the right symbol in here. However, we're not
// using these methods right now anyway.
/*
INLINE void build_simple(const dReal* vertices, int vertex_count, \
const int* indices, int index_count);
INLINE void build_simple1(const dReal* vertices, int vertex_count, \
const int* indices, int index_count, \
const int* normals);
*/
INLINE void preprocess();
INLINE dTriMeshDataID get_id() const;