step closer to GPU bvh traversal

This commit is contained in:
erwin coumans
2013-03-19 20:06:24 -07:00
parent a3358b1099
commit 8bfbaf3ed1
26 changed files with 3639 additions and 98 deletions

View File

@@ -19,6 +19,8 @@ protected:
cl_device_id m_device;
cl_command_queue m_queue;
int registerConvexHullShape(class btConvexUtility* convexPtr, btCollidable& col);
int registerConcaveMeshShape(btAlignedObjectArray<btVector3>* vertices, btAlignedObjectArray<int>* indices, btCollidable& col, const float* scaling);
public:
@@ -32,15 +34,14 @@ public:
int registerCompoundShape(btAlignedObjectArray<btGpuChildShape>* childShapes);
int registerFace(const btVector3& faceNormal, float faceConstant);
int registerConcaveMeshShape(btAlignedObjectArray<btVector3>* vertices, btAlignedObjectArray<int>* indices, btCollidable& col, const float* scaling);
int registerConcaveMeshShape(class objLoader* obj, btCollidable& col, const float* scaling);
int registerConcaveMesh(btAlignedObjectArray<btVector3>* vertices, btAlignedObjectArray<int>* indices,const float* scaling);
//do they need to be merged?
int registerConvexHullShape(class btConvexUtility* convexPtr, btCollidable& col);
int registerConvexHullShape(btConvexUtility* utilPtr);
int registerConvexHullShape(const float* vertices, int strideInBytes, int numVertices, const float* scaling);
int registerConvexHeightfield(class ConvexHeightField* convexShape,btCollidable& col);
int registerRigidBody(int collidableIndex, float mass, const float* position, const float* orientation, const float* aabbMin, const float* aabbMax,bool writeToGpu);
void setObjectTransform(const float* position, const float* orientation , int bodyIndex);