OpenMW
|
#include <objects.hpp>
Public Member Functions | |
Objects (OEngine::Render::OgreRenderer &renderer) | |
~Objects () | |
void | insertModel (const MWWorld::Ptr &ptr, const std::string &model) |
ObjectAnimation * | getAnimation (const MWWorld::Ptr &ptr) |
void | enableLights () |
void | disableLights () |
void | update (float dt, Ogre::Camera *camera) |
per-frame update | |
Ogre::AxisAlignedBox | getDimensions (MWWorld::CellStore *) |
get a bounding box that encloses all objects in the specified cell | |
bool | deleteObject (const MWWorld::Ptr &ptr) |
void | removeCell (MWWorld::CellStore *store) |
void | buildStaticGeometry (MWWorld::CellStore &cell) |
void | setRootNode (Ogre::SceneNode *root) |
void | rebuildStaticGeometry () |
void | updateObjectCell (const MWWorld::Ptr &old, const MWWorld::Ptr &cur) |
Updates containing cell for object rendering data. | |
Private Types | |
typedef std::map< MWWorld::Ptr, ObjectAnimation * > | PtrAnimationMap |
Private Member Functions | |
void | insertBegin (const MWWorld::Ptr &ptr) |
Private Attributes | |
OEngine::Render::OgreRenderer & | mRenderer |
std::map< MWWorld::CellStore *, Ogre::SceneNode * > | mCellSceneNodes |
std::map< MWWorld::CellStore *, Ogre::StaticGeometry * > | mStaticGeometry |
std::map< MWWorld::CellStore *, Ogre::StaticGeometry * > | mStaticGeometrySmall |
std::map< MWWorld::CellStore *, Ogre::AxisAlignedBox > | mBounds |
PtrAnimationMap | mObjects |
Ogre::SceneNode * | mRootNode |
Static Private Attributes | |
static int | uniqueID = 0 |
typedef std::map<MWWorld::Ptr,ObjectAnimation*> MWRender::Objects::PtrAnimationMap [private] |
MWRender::Objects::Objects | ( | OEngine::Render::OgreRenderer & | renderer | ) | [inline] |
MWRender::Objects::~Objects | ( | ) | [inline] |
void Objects::buildStaticGeometry | ( | MWWorld::CellStore & | cell | ) |
bool Objects::deleteObject | ( | const MWWorld::Ptr & | ptr | ) |
void Objects::disableLights | ( | ) |
void Objects::enableLights | ( | ) |
ObjectAnimation * Objects::getAnimation | ( | const MWWorld::Ptr & | ptr | ) |
Ogre::AxisAlignedBox Objects::getDimensions | ( | MWWorld::CellStore * | cell | ) |
get a bounding box that encloses all objects in the specified cell
void Objects::insertBegin | ( | const MWWorld::Ptr & | ptr | ) | [private] |
void Objects::insertModel | ( | const MWWorld::Ptr & | ptr, |
const std::string & | model | ||
) |
void Objects::rebuildStaticGeometry | ( | ) |
void Objects::removeCell | ( | MWWorld::CellStore * | store | ) |
void Objects::setRootNode | ( | Ogre::SceneNode * | root | ) |
void Objects::update | ( | float | dt, |
Ogre::Camera * | camera | ||
) |
per-frame update
void Objects::updateObjectCell | ( | const MWWorld::Ptr & | old, |
const MWWorld::Ptr & | cur | ||
) |
Updates containing cell for object rendering data.
std::map<MWWorld::CellStore*,Ogre::AxisAlignedBox> MWRender::Objects::mBounds [private] |
std::map<MWWorld::CellStore*,Ogre::SceneNode*> MWRender::Objects::mCellSceneNodes [private] |
PtrAnimationMap MWRender::Objects::mObjects [private] |
Ogre::SceneNode* MWRender::Objects::mRootNode [private] |
std::map<MWWorld::CellStore*,Ogre::StaticGeometry*> MWRender::Objects::mStaticGeometry [private] |
std::map<MWWorld::CellStore*,Ogre::StaticGeometry*> MWRender::Objects::mStaticGeometrySmall [private] |
int Objects::uniqueID = 0 [static, private] |