2015-05-02 04:34:27 +00:00
|
|
|
#ifndef GPU_RIGIDBODY_INTERNAL_DATA_H
|
|
|
|
#define GPU_RIGIDBODY_INTERNAL_DATA_H
|
|
|
|
|
|
|
|
#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h"
|
|
|
|
#include "Bullet3OpenCL/ParallelPrimitives/b3OpenCLArray.h"
|
|
|
|
#include "Bullet3Common/b3Vector3.h"
|
|
|
|
#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h"
|
|
|
|
|
|
|
|
struct GpuRigidBodyDemoInternalData
|
|
|
|
{
|
|
|
|
|
|
|
|
cl_kernel m_copyTransformsToVBOKernel;
|
|
|
|
|
|
|
|
b3OpenCLArray<b3Vector4>* m_instancePosOrnColor;
|
|
|
|
|
|
|
|
class b3GpuRigidBodyPipeline* m_rigidBodyPipeline;
|
|
|
|
|
|
|
|
class b3GpuNarrowPhase* m_np;
|
|
|
|
class b3GpuBroadphaseInterface* m_bp;
|
2018-06-09 20:54:22 +00:00
|
|
|
struct b3DynamicBvhBroadphase* m_broadphaseDbvt;
|
2015-05-02 04:34:27 +00:00
|
|
|
|
|
|
|
b3Vector3 m_pickPivotInA;
|
|
|
|
b3Vector3 m_pickPivotInB;
|
|
|
|
float m_pickDistance;
|
|
|
|
int m_pickBody;
|
|
|
|
int m_pickConstraint;
|
|
|
|
|
|
|
|
int m_altPressed;
|
|
|
|
int m_controlPressed;
|
|
|
|
|
|
|
|
int m_pickFixedBody;
|
|
|
|
int m_pickGraphicsShapeIndex;
|
|
|
|
int m_pickGraphicsShapeInstance;
|
|
|
|
b3Config m_config;
|
2016-12-17 02:09:52 +00:00
|
|
|
GUIHelperInterface* m_guiHelper;
|
2015-05-02 04:34:27 +00:00
|
|
|
|
|
|
|
GpuRigidBodyDemoInternalData()
|
|
|
|
:m_instancePosOrnColor(0),
|
|
|
|
m_copyTransformsToVBOKernel(0), m_rigidBodyPipeline(0),
|
|
|
|
m_np(0),
|
|
|
|
m_bp(0),
|
|
|
|
m_broadphaseDbvt(0),
|
|
|
|
m_pickConstraint(-1),
|
|
|
|
m_pickFixedBody(-1),
|
|
|
|
m_pickGraphicsShapeIndex(-1),
|
|
|
|
m_pickGraphicsShapeInstance(-1),
|
|
|
|
m_pickBody(-1),
|
|
|
|
m_altPressed(0),
|
2016-12-17 02:09:52 +00:00
|
|
|
m_controlPressed(0),
|
|
|
|
m_guiHelper(0)
|
2015-05-02 04:34:27 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif//GPU_RIGIDBODY_INTERNAL_DATA_H
|
|
|
|
|