Made recommended changes

actorid
Jason Hooks 13 years ago
parent f1bc5b0ab6
commit 3d43a4cd33

@ -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…
Cancel
Save