mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:53:51 +00:00
Made recommended changes
This commit is contained in:
parent
f1bc5b0ab6
commit
3d43a4cd33
4 changed files with 15 additions and 16 deletions
|
@ -2,15 +2,12 @@
|
|||
|
||||
using namespace MWRender;
|
||||
|
||||
void Objects::insertBegin (ESM::CellRef &ref, bool static_){
|
||||
void Objects::insertBegin (const MWWorld::Ptr& ptr, bool enabled, bool static_){
|
||||
|
||||
}
|
||||
void Objects::insertMesh(const std::string &mesh){
|
||||
void Objects::insertMesh (const MWWorld::Ptr& ptr, const std::string& mesh){
|
||||
|
||||
}
|
||||
void Objects::insertLight(float r, float g, float b, float radius){
|
||||
void Objects::insertLight (const MWWorld::Ptr& ptr, float r, float g, float b, float radius){
|
||||
|
||||
}
|
||||
void Objects::insertObjectPhysics(){
|
||||
|
||||
}
|
|
@ -1,18 +1,20 @@
|
|||
#include "components/esm_store/cell_store.hpp"
|
||||
|
||||
#include "../mwworld/refdata.hpp"
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
namespace MWRender{
|
||||
class Objects{
|
||||
private:
|
||||
OEngine::Render::OgreRenderer &rend;
|
||||
public:
|
||||
Objects(){}
|
||||
Objects(OEngine::Render::OgreRenderer& _rend): rend(_rend){}
|
||||
~Objects(){}
|
||||
void insertBegin (ESM::CellRef &ref, bool static_ = false);
|
||||
void insertMesh(const std::string &mesh);
|
||||
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.
|
||||
void insertLight(float r, float g, float b, float radius);
|
||||
void insertObjectPhysics();
|
||||
|
||||
|
||||
};
|
||||
}
|
|
@ -77,8 +77,8 @@ MWRender::Objects& RenderingManager::getObjects(){
|
|||
MWRender::Creatures& RenderingManager::getCreatures(){
|
||||
return creatures;
|
||||
}
|
||||
MWRender::Player* RenderingManager::getPlayer(){
|
||||
return mPlayer;
|
||||
MWRender::Player& RenderingManager::getPlayer(){
|
||||
return (*mPlayer);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace MWRender
|
|||
virtual MWRender::Npcs& getNPCs();
|
||||
virtual MWRender::Creatures& getCreatures();
|
||||
virtual MWRender::Objects& getObjects();
|
||||
virtual MWRender::Player* getPlayer();
|
||||
virtual MWRender::Player& getPlayer();
|
||||
};
|
||||
|
||||
class RenderingManager: private RenderingInterface {
|
||||
|
@ -71,7 +71,7 @@ class RenderingManager: private RenderingInterface {
|
|||
virtual MWRender::Npcs& getNPCs();
|
||||
virtual MWRender::Creatures& getCreatures();
|
||||
virtual MWRender::Objects& getObjects();
|
||||
virtual MWRender::Player* getPlayer();
|
||||
virtual MWRender::Player& getPlayer();
|
||||
bool toggleRenderMode(int mode);
|
||||
|
||||
void removeCell (MWWorld::Ptr::CellStore *store); // TODO do we want this?
|
||||
|
|
Loading…
Reference in a new issue