1 #ifndef OPENMW_COMPONENTS_NIFBULLET_BULLETNIFLOADER_HPP
2 #define OPENMW_COMPONENTS_NIFBULLET_BULLETNIFLOADER_HPP
10 #include <osg/Matrixf>
11 #include <osg/BoundingBox>
12 #include <osg/ref_ptr>
13 #include <osg/Referenced>
19 class btCompoundShape;
20 class btCollisionShape;
25 struct Transformation;
42 void warn(
const std::string &msg)
44 std::cerr <<
"NIFLoader: Warn:" << msg <<
"\n";
47 void fail(
const std::string &msg)
49 std::cerr <<
"NIFLoader: Fail: "<< msg << std::endl;
58 void handleNode(
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
bool hasAutoGeneratedCollision(const Nif::Node *rootNode)
Definition: bulletnifloader.cpp:157
void handleNode(Nif::Node const *node, int flags, bool isCollisionNode, bool isAnimated=false, bool autogenerated=false)
Definition: bulletnifloader.cpp:175
void handleNiTriShape(const Nif::NiTriShape *shape, int flags, const osg::Matrixf &transform, bool isAnimated)
Definition: bulletnifloader.cpp:245
virtual ~BulletNifLoader()
Definition: bulletnifloader.cpp:48
bool findBoundingBox(const Nif::Node *node, int flags=0)
Definition: bulletnifloader.cpp:125
void warn(const std::string &msg)
Definition: bulletnifloader.hpp:42
osg::ref_ptr< Resource::BulletShape > load(const Nif::NIFFilePtr file)
Definition: bulletnifloader.cpp:52
BulletNifLoader()
Definition: bulletnifloader.cpp:42
Definition: bulletnifloader.hpp:35
boost::shared_ptr< const Nif::NIFFile > NIFFilePtr
Definition: niffile.hpp:95
btCompoundShape * mCompoundShape
Definition: bulletnifloader.hpp:64
btTriangleMesh * mStaticMesh
Definition: bulletnifloader.hpp:66