1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
OpenMW/apps/openmw/mwrender/rendering_manager.hpp

53 lines
1.4 KiB
C++
Raw Normal View History

2011-08-07 16:40:01 +02:00
#ifndef _GAME_RENDERING_MANAGER_H
#define _GAME_RENDERING_MANAGER_H
2011-08-08 21:11:30 +02:00
#include "sky.hpp"
2011-08-07 16:40:01 +02:00
#include "../mwworld/ptr.hpp"
#include <openengine/ogre/renderer.hpp>
#include <openengine/bullet/physic.hpp>
2011-10-20 13:55:56 -04:00
#include <boost/filesystem.hpp>
2011-08-07 16:40:01 +02:00
namespace MWRender
{
class RenderingManager {
public:
2011-10-20 13:55:56 -04:00
RenderingManager(Ogre::RenderWindow* window, Ogre::Camera* cam, const boost::filesystem2::path& resDir);
2011-08-08 21:11:30 +02:00
~RenderingManager();
2011-08-07 16:40:01 +02:00
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);
2011-08-08 21:11:30 +02:00
2011-08-07 16:40:01 +02:00
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:
2011-08-08 21:11:30 +02:00
SkyManager* mSkyManager;
2011-08-07 16:40:01 +02:00
};
}
#endif