From 46a08e328284808e33c2a33e8c1be3808084f847 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Sat, 3 Aug 2013 11:12:51 -0700 Subject: [PATCH] add missing header file, test case for sharing code between C++ / OpenCL The headers are recursively embedded, only the necessary parts (skipping parts behind undeclared ifdefs) --- .../shared/b3Contact4Data.h | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Bullet3Collision/NarrowPhaseCollision/shared/b3Contact4Data.h diff --git a/src/Bullet3Collision/NarrowPhaseCollision/shared/b3Contact4Data.h b/src/Bullet3Collision/NarrowPhaseCollision/shared/b3Contact4Data.h new file mode 100644 index 000000000..9be5067c8 --- /dev/null +++ b/src/Bullet3Collision/NarrowPhaseCollision/shared/b3Contact4Data.h @@ -0,0 +1,23 @@ +#ifndef B3_CONTACT4DATA_H +#define B3_CONTACT4DATA_H + +#include "Bullet3Common/shared/b3Float4.h" + +typedef struct +{ + b3Float4 m_worldPos[4]; + b3Float4 m_worldNormal; // w: m_nPoints + unsigned int m_coeffs; + unsigned int m_batchIdx; + + int m_bodyAPtrAndSignBit;//x:m_bodyAPtr, y:m_bodyBPtr + int m_bodyBPtrAndSignBit; + + int m_childIndexA; + int m_childIndexB; + int m_unused1; + int m_unused2; + +} b3Contact4Data; + +#endif //B3_CONTACT4DATA_H \ No newline at end of file