1 #ifndef OPENMW_COMPONENTS_NIFBULLET_BULLETNIFLOADER_HPP
2 #define OPENMW_COMPONENTS_NIFBULLET_BULLETNIFLOADER_HPP
10 #include <osg/BoundingBox>
11 #include <osg/ref_ptr>
12 #include <osg/Referenced>
19 class btCompoundShape;
20 class btCollisionShape;
25 struct Transformation;
42 void warn(
const std::string &msg)
47 void fail(
const std::string &msg)
53 osg::ref_ptr<Resource::BulletShape>
load(
const Nif::File& file);
58 void handleNode(
const std::string& fileName,
Nif::Node const *node,
int flags,
bool isCollisionNode,
bool isAnimated=
false,
bool autogenerated=
false);
68 osg::ref_ptr<Resource::BulletShape>
mShape;
void fail(const std::string &msg)
Definition: bulletnifloader.hpp:47
osg::ref_ptr< Resource::BulletShape > mShape
Definition: bulletnifloader.hpp:68
Definition: debuglog.hpp:12
Definition: debuglog.hpp:13
void handleNiTriShape(const Nif::NiTriShape *shape, int flags, const osg::Matrixf &transform, bool isAnimated)
Definition: bulletnifloader.cpp:264
Definition: debuglog.hpp:22
virtual ~BulletNifLoader()
Definition: bulletnifloader.cpp:56
const Nif::Node * getCollisionNode(const Nif::Node *rootNode)
Definition: bulletnifloader.cpp:166
bool findBoundingBox(const Nif::Node *node, int flags=0)
Definition: bulletnifloader.cpp:134
void warn(const std::string &msg)
Definition: bulletnifloader.hpp:42
osg::ref_ptr< Resource::BulletShape > load(const Nif::File &file)
Definition: bulletnifloader.cpp:60
std::unique_ptr< btTriangleMesh > mStaticMesh
Definition: bulletnifloader.hpp:66
BulletNifLoader()
Definition: bulletnifloader.cpp:50
Definition: niffile.hpp:17
Definition: bulletnifloader.hpp:35
std::unique_ptr< btCompoundShape > mCompoundShape
Definition: bulletnifloader.hpp:64
void handleNode(const std::string &fileName, Nif::Node const *node, int flags, bool isCollisionNode, bool isAnimated=false, bool autogenerated=false)
Definition: bulletnifloader.cpp:193