12 #ifndef hifi_ShapeFactory_h
13 #define hifi_ShapeFactory_h
15 #include <btBulletDynamicsCommon.h>
16 #include <glm/glm.hpp>
18 #include <QtCore/QRunnable>
20 #include <ShapeInfo.h>
24 namespace ShapeFactory {
25 const btCollisionShape* createShapeFromInfo(
const ShapeInfo& info);
26 void deleteShape(
const btCollisionShape* shape);
28 class Worker :
public QObject,
public QRunnable {
31 Worker(
const ShapeInfo& info) : shapeInfo(info), shape(nullptr) {}
34 const btCollisionShape* shape;
36 void submitWork(Worker*);