mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
41 lines
962 B
C++
41 lines
962 B
C++
#ifndef _GAME_RENDER_MWSCENE_H
|
|
#define _GAME_RENDER_MWSCENE_H
|
|
|
|
#include "components/engine/ogre/renderer.hpp"
|
|
|
|
namespace Ogre
|
|
{
|
|
class Camera;
|
|
class Viewport;
|
|
class SceneManager;
|
|
class SceneNode;
|
|
}
|
|
|
|
namespace MWRender
|
|
{
|
|
/** Class responsible for Morrowind-specific interfaces to OGRE.
|
|
|
|
This might be refactored partially into a non-mw specific
|
|
counterpart in ogre/ at some point.
|
|
*/
|
|
class MWScene
|
|
{
|
|
Render::OgreRenderer &rend;
|
|
|
|
// Root node for all objects added to the scene. This is rotated so
|
|
// that the OGRE coordinate system matches that used internally in
|
|
// Morrowind.
|
|
Ogre::SceneNode *mwRoot;
|
|
|
|
public:
|
|
MWScene(Render::OgreRenderer &_rend);
|
|
|
|
Ogre::Camera *getCamera() { return rend.getCamera(); }
|
|
Ogre::SceneNode *getRoot() { return mwRoot; }
|
|
Ogre::SceneManager *getMgr() { return rend.getScene(); }
|
|
Ogre::Viewport *getViewport() { return rend.getViewport(); }
|
|
};
|
|
}
|
|
|
|
#endif
|