start RenderingManager

actorid
Sebastian Wick 14 years ago
parent 74b4a0cbe5
commit 54724d7e7f

@ -16,7 +16,7 @@ set(GAME_HEADER
source_group(game FILES ${GAME} ${GAME_HEADER})
set(GAMEREND
mwrender/render_manager.cpp
mwrender/rendering_manager.cpp
mwrender/mwscene.cpp
mwrender/cellimp.cpp
mwrender/interior.cpp
@ -25,7 +25,7 @@ set(GAMEREND
mwrender/player.cpp
)
set(GAMEREND_HEADER
mwrender/render_manager.hpp
mwrender/rendering_manager.hpp
mwrender/cell.hpp
mwrender/cellimp.hpp
mwrender/mwscene.hpp

@ -1 +0,0 @@
#include "render_manager.hpp"

@ -1,9 +0,0 @@
#ifndef _GAME_RENDER_MANAGER_H
#define _GAME_RENDER_MANAGER_H
namespace MWRender
{
}
#endif

@ -0,0 +1 @@
#include "rendering_manager.hpp"

@ -0,0 +1,43 @@
#ifndef _GAME_RENDERING_MANAGER_H
#define _GAME_RENDERING_MANAGER_H
#include "../mwworld/ptr.hpp"
#include <openengine/ogre/renderer.hpp>
#include <openengine/bullet/physic.hpp>
namespace MWRender
{
class RenderingManager {
public:
void removeCell (MWWorld::Ptr::CellStore *store); // TODO do we want this?
void addObject (const MWWorld::Ptr& ptr, MWWorld::Ptr::CellStore *store);
void removeObject (const MWWorld::Ptr& ptr, MWWorld::Ptr::CellStore *store);
void moveObject (const MWWorld::Ptr& ptr, const Ogre::Vector3& position);
void scaleObject (const MWWorld::Ptr& ptr, const Ogre::Vector3& scale);
void rotateObject (const MWWorld::Ptr& ptr, const::Ogre::Quaternion& orientation);
void moveObjectToCell (const MWWorld::Ptr& ptr, const Ogre::Vector3& position, MWWorld::Ptr::CellStore *store);
void setPhysicsDebugRendering (bool);
bool getPhysicsDebugRendering() const;
void update (float duration);
void skyEnable ();
void skyDisable ();
void skySetHour (double hour);
void skySetDate (int day, int month);
int skyGetMasserPhase() const;
int skyGetSecundaPhase() const;
void skySetMoonColour (bool red);
private:
};
}
#endif

@ -152,9 +152,9 @@ namespace MWWorld
Scene::~Scene()
{
for (CellRenderCollection::iterator iter (mActiveCells.begin());
/*for (CellRenderCollection::iterator iter (mActiveCells.begin());
iter!=mActiveCells.end(); ++iter)
delete iter->second;
delete iter->second;*/
}
bool Scene::hasCellChanged() const

@ -320,7 +320,7 @@ namespace MWWorld
delete mPlayer;
delete mSkyManager;
delete mGlobalVariables;
delete mWorldScene;
//delete mWorldScene;
delete mPhysics;
}

Loading…
Cancel
Save