mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
24 lines
754 B
C++
24 lines
754 B
C++
#include "components/esm_store/cell_store.hpp"
|
|
|
|
#include "../mwworld/refdata.hpp"
|
|
#include "../mwworld/ptr.hpp"
|
|
#include <openengine/ogre/renderer.hpp>
|
|
|
|
namespace MWRender{
|
|
class Objects{
|
|
private:
|
|
OEngine::Render::OgreRenderer &rend;
|
|
Ogre::SceneNode *mBase;
|
|
Ogre::SceneNode *mInsert;
|
|
bool isStatic;
|
|
public:
|
|
Objects(OEngine::Render::OgreRenderer& _rend): rend(_rend){mBase = rend.getScene()->getRootSceneNode(); }
|
|
~Objects(){}
|
|
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);
|
|
|
|
/// insert a light related to the most recent insertBegin call.
|
|
|
|
};
|
|
} |