forked from mirror/openmw-tes3mp
Mantis: #18 - Move components from global namespace into their own namespace.
Moving classes from components/nifbullet into NifBullet namespace. Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
This commit is contained in:
parent
514b55766f
commit
2ddd5dba11
4 changed files with 8 additions and 4 deletions
|
@ -358,7 +358,7 @@ void OMW::Engine::go()
|
||||||
loadBSA();
|
loadBSA();
|
||||||
|
|
||||||
// Create physics. shapeLoader is deleted by the physic engine
|
// Create physics. shapeLoader is deleted by the physic engine
|
||||||
ManualBulletShapeLoader* shapeLoader = new ManualBulletShapeLoader();
|
NifBullet::ManualBulletShapeLoader* shapeLoader = new NifBullet::ManualBulletShapeLoader();
|
||||||
mPhysicEngine = new OEngine::Physic::PhysicEngine(shapeLoader);
|
mPhysicEngine = new OEngine::Physic::PhysicEngine(shapeLoader);
|
||||||
|
|
||||||
// Create the world
|
// Create the world
|
||||||
|
|
|
@ -49,7 +49,7 @@ using namespace Ogre;
|
||||||
using namespace Nif;
|
using namespace Nif;
|
||||||
using namespace Mangle::VFS;
|
using namespace Mangle::VFS;
|
||||||
|
|
||||||
|
using namespace NifBullet;
|
||||||
|
|
||||||
//====================================================================================================
|
//====================================================================================================
|
||||||
Ogre::Matrix3 ManualBulletShapeLoader::getMatrix(Nif::Transformation* tr)
|
Ogre::Matrix3 ManualBulletShapeLoader::getMatrix(Nif::Transformation* tr)
|
||||||
|
|
|
@ -58,6 +58,8 @@ namespace Mangle
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace NifBullet
|
||||||
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*Load bulletShape from NIF files.
|
*Load bulletShape from NIF files.
|
||||||
|
@ -126,4 +128,6 @@ private:
|
||||||
btCompoundShape* currentShape;//the shape curently under construction
|
btCompoundShape* currentShape;//the shape curently under construction
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -90,11 +90,11 @@ int main()
|
||||||
|
|
||||||
|
|
||||||
//Ressources stuff
|
//Ressources stuff
|
||||||
addBSA("Morrowind.bsa");
|
Bsa::addBSA("Morrowind.bsa");
|
||||||
//Ogre::ResourceGroupManager::getSingleton().createResourceGroup("general");
|
//Ogre::ResourceGroupManager::getSingleton().createResourceGroup("general");
|
||||||
|
|
||||||
Ogre::ResourcePtr ptr = BulletShapeManager::getSingleton().getByName(mesh,"General");
|
Ogre::ResourcePtr ptr = BulletShapeManager::getSingleton().getByName(mesh,"General");
|
||||||
ManualBulletShapeLoader* ShapeLoader = new ManualBulletShapeLoader();
|
NifBullet::ManualBulletShapeLoader* ShapeLoader = new NifBullet::ManualBulletShapeLoader();
|
||||||
|
|
||||||
ShapeLoader->load(mesh,"General");
|
ShapeLoader->load(mesh,"General");
|
||||||
//BulletShapeManager::getSingleton().unload(mesh);
|
//BulletShapeManager::getSingleton().unload(mesh);
|
||||||
|
|
Loading…
Reference in a new issue