OpenMW
Public Member Functions | Private Attributes
OEngine::Render::OgreRenderer Class Reference

#include <renderer.hpp>

List of all members.

Public Member Functions

 OgreRenderer ()
 ~OgreRenderer ()
void configure (const std::string &logPath, const std::string &renderSystem, const std::string &rttMode)
void createWindow (const std::string &title, const WindowSettings &settings)
 Create a window with the given title.
void adjustCamera (float fov=55, float nearClip=5)
 Set up the scene manager, camera and viewport.
void setFov (float fov)
void cleanup ()
 Kill the renderer.
void update (float dt)
void screenshot (const std::string &file)
 Write a screenshot to file.
float getFPS ()
void windowResized (int x, int y)
Ogre::Root * getRoot ()
 Get the Root.
Ogre::RenderWindow * getWindow ()
 Get the rendering window.
SDL_Window * getSDLWindow ()
 Get the SDL Window.
Ogre::SceneManager * getScene ()
 Get the scene manager.
FadergetFader ()
 Get the screen colour fader.
Ogre::Camera * getCamera ()
 Camera.
Ogre::Viewport * getViewport ()
 Viewport.
void setWindowListener (WindowSizeListener *listener)
void adjustViewport ()

Private Attributes

Ogre::Root * mRoot
Ogre::RenderWindow * mWindow
SDL_Window * mSDLWindow
Ogre::SceneManager * mScene
Ogre::Camera * mCamera
Ogre::Viewport * mView
OgreInit::OgreInitmOgreInit
FadermFader
WindowSizeListenermWindowListener

Constructor & Destructor Documentation


Member Function Documentation

void OgreRenderer::adjustCamera ( float  fov = 55,
float  nearClip = 5 
)

Set up the scene manager, camera and viewport.

Kill the renderer.

void OgreRenderer::configure ( const std::string &  logPath,
const std::string &  renderSystem,
const std::string &  rttMode 
)

Configure the renderer. This will load configuration files and set up the Root and logging classes.

void OgreRenderer::createWindow ( const std::string &  title,
const WindowSettings settings 
)

Create a window with the given title.

Ogre::Camera* OEngine::Render::OgreRenderer::getCamera ( ) [inline]

Camera.

Get the screen colour fader.

Ogre::Root* OEngine::Render::OgreRenderer::getRoot ( ) [inline]

Get the Root.

Ogre::SceneManager* OEngine::Render::OgreRenderer::getScene ( ) [inline]

Get the scene manager.

Get the SDL Window.

Ogre::Viewport* OEngine::Render::OgreRenderer::getViewport ( ) [inline]

Viewport.

Ogre::RenderWindow* OEngine::Render::OgreRenderer::getWindow ( ) [inline]

Get the rendering window.

void OgreRenderer::screenshot ( const std::string &  file)

Write a screenshot to file.

void OgreRenderer::setFov ( float  fov)
void OgreRenderer::update ( float  dt)
void OgreRenderer::windowResized ( int  x,
int  y 
)

Member Data Documentation

Ogre::Camera* OEngine::Render::OgreRenderer::mCamera [private]
Ogre::Root* OEngine::Render::OgreRenderer::mRoot [private]
Ogre::SceneManager* OEngine::Render::OgreRenderer::mScene [private]
Ogre::Viewport* OEngine::Render::OgreRenderer::mView [private]
Ogre::RenderWindow* OEngine::Render::OgreRenderer::mWindow [private]

The documentation for this class was generated from the following files: