OpenMW
|
#include <objects.hpp>
Public Member Functions | |
Objects (Resource::ResourceSystem *resourceSystem, osg::ref_ptr< osg::Group > rootNode, SceneUtil::UnrefQueue *unrefQueue) | |
~Objects () | |
void | insertModel (const MWWorld::Ptr &ptr, const std::string &model, bool animated=false, bool allowLight=true) |
void | insertNPC (const MWWorld::Ptr &ptr) |
void | insertCreature (const MWWorld::Ptr &ptr, const std::string &model, bool weaponsShields) |
Animation * | getAnimation (const MWWorld::Ptr &ptr) |
const Animation * | getAnimation (const MWWorld::ConstPtr &ptr) const |
bool | removeObject (const MWWorld::Ptr &ptr) |
void | removeCell (const MWWorld::CellStore *store) |
void | updatePtr (const MWWorld::Ptr &old, const MWWorld::Ptr &cur) |
Updates containing cell for object rendering data. More... | |
Private Types | |
typedef std::map < MWWorld::ConstPtr, Animation * > | PtrAnimationMap |
typedef std::map< const MWWorld::CellStore *, osg::ref_ptr< osg::Group > > | CellMap |
Private Member Functions | |
void | insertBegin (const MWWorld::Ptr &ptr) |
void | operator= (const Objects &) |
Objects (const Objects &) | |
Private Attributes | |
CellMap | mCellSceneNodes |
PtrAnimationMap | mObjects |
osg::ref_ptr< osg::Group > | mRootNode |
Resource::ResourceSystem * | mResourceSystem |
osg::ref_ptr < SceneUtil::UnrefQueue > | mUnrefQueue |
|
private |
|
private |
MWRender::Objects::Objects | ( | Resource::ResourceSystem * | resourceSystem, |
osg::ref_ptr< osg::Group > | rootNode, | ||
SceneUtil::UnrefQueue * | unrefQueue | ||
) |
MWRender::Objects::~Objects | ( | ) |
|
private |
Animation * MWRender::Objects::getAnimation | ( | const MWWorld::Ptr & | ptr | ) |
const Animation * MWRender::Objects::getAnimation | ( | const MWWorld::ConstPtr & | ptr | ) | const |
|
private |
void MWRender::Objects::insertCreature | ( | const MWWorld::Ptr & | ptr, |
const std::string & | model, | ||
bool | weaponsShields | ||
) |
void MWRender::Objects::insertModel | ( | const MWWorld::Ptr & | ptr, |
const std::string & | model, | ||
bool | animated = false , |
||
bool | allowLight = true |
||
) |
animated | Attempt to load separate keyframes from a .kf file matching the model file? |
allowLight | If false, no lights will be created, and particles systems will be removed. |
void MWRender::Objects::insertNPC | ( | const MWWorld::Ptr & | ptr | ) |
|
private |
void MWRender::Objects::removeCell | ( | const MWWorld::CellStore * | store | ) |
bool MWRender::Objects::removeObject | ( | const MWWorld::Ptr & | ptr | ) |
void MWRender::Objects::updatePtr | ( | const MWWorld::Ptr & | old, |
const MWWorld::Ptr & | cur | ||
) |
Updates containing cell for object rendering data.
|
private |
|
private |
|
private |
|
private |
|
private |