Minor cleanup

c++11
scrawl 10 years ago
parent cdc47fa874
commit 712cef36b0

@ -594,7 +594,7 @@ namespace MWPhysics
// --------------------------------------------------------------- // ---------------------------------------------------------------
PhysicsSystem::PhysicsSystem(Resource::ResourceSystem* resourceSystem, osg::ref_ptr<osg::Group> parentNode) PhysicsSystem::PhysicsSystem(Resource::ResourceSystem* resourceSystem, osg::ref_ptr<osg::Group> parentNode)
: mShapeManager(new NifBullet::BulletShapeManager(resourceSystem->getVFS(), resourceSystem->getSceneManager())) : mShapeManager(new NifBullet::BulletShapeManager(resourceSystem->getVFS()))
, mDebugDrawEnabled(false) , mDebugDrawEnabled(false)
, mTimeAccum(0.0f) , mTimeAccum(0.0f)
, mWaterHeight(0) , mWaterHeight(0)

@ -4,14 +4,11 @@
#include <components/nifbullet/bulletnifloader.hpp> #include <components/nifbullet/bulletnifloader.hpp>
#include <components/resource/scenemanager.hpp>
namespace NifBullet namespace NifBullet
{ {
BulletShapeManager::BulletShapeManager(const VFS::Manager* vfs, Resource::SceneManager* sceneManager) BulletShapeManager::BulletShapeManager(const VFS::Manager* vfs)
: mVFS(vfs) : mVFS(vfs)
, mSceneManager(sceneManager)
{ {
} }

@ -25,15 +25,13 @@ namespace NifBullet
class BulletShapeManager class BulletShapeManager
{ {
public: public:
BulletShapeManager(const VFS::Manager* vfs, Resource::SceneManager* sceneManager); BulletShapeManager(const VFS::Manager* vfs);
~BulletShapeManager(); ~BulletShapeManager();
osg::ref_ptr<BulletShapeInstance> createInstance(const std::string& name); osg::ref_ptr<BulletShapeInstance> createInstance(const std::string& name);
private: private:
const VFS::Manager* mVFS; const VFS::Manager* mVFS;
// need to load keyframes to know what nodes are going to be animated
Resource::SceneManager* mSceneManager;
typedef std::map<std::string, osg::ref_ptr<BulletShape> > Index; typedef std::map<std::string, osg::ref_ptr<BulletShape> > Index;
Index mIndex; Index mIndex;

Loading…
Cancel
Save