1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37:53 +00:00
OpenMW/apps/openmw/mwrender/objects.hpp

23 lines
724 B
C++
Raw Normal View History

2011-11-01 03:59:16 +00:00
#include "components/esm_store/cell_store.hpp"
#include "../mwworld/refdata.hpp"
2011-11-01 17:46:57 +00:00
#include "../mwworld/ptr.hpp"
2011-11-02 04:13:33 +00:00
#include <openengine/ogre/renderer.hpp>
2011-11-01 03:59:16 +00:00
namespace MWRender{
class Objects{
2011-11-01 17:46:57 +00:00
private:
OEngine::Render::OgreRenderer &rend;
2011-11-03 02:41:48 +00:00
std::map<MWWorld::Ptr::CellStore *, Ogre::SceneNode *> cellSceneNodes;
2011-11-02 04:13:33 +00:00
bool isStatic;
2011-11-01 03:59:16 +00:00
public:
2011-11-03 02:41:48 +00:00
Objects(OEngine::Render::OgreRenderer& _rend): rend(_rend){}
2011-11-01 03:59:16 +00:00
~Objects(){}
2011-11-01 17:46:57 +00:00
void insertBegin (const MWWorld::Ptr& ptr, bool enabled, bool static_);
void insertMesh (const MWWorld::Ptr& ptr, const std::string& mesh);
void insertLight (const MWWorld::Ptr& ptr, float r, float g, float b, float radius);
2011-11-01 03:59:16 +00:00
/// insert a light related to the most recent insertBegin call.
2011-11-01 17:46:57 +00:00
2011-11-01 03:59:16 +00:00
};
}