OpenMW
|
#include <renderer.hpp>
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. | |
Fader * | getFader () |
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::OgreInit * | mOgreInit |
Fader * | mFader |
WindowSizeListener * | mWindowListener |
OEngine::Render::OgreRenderer::OgreRenderer | ( | ) | [inline] |
OEngine::Render::OgreRenderer::~OgreRenderer | ( | ) | [inline] |
void OgreRenderer::adjustCamera | ( | float | fov = 55 , |
float | nearClip = 5 |
||
) |
Set up the scene manager, camera and viewport.
void OgreRenderer::adjustViewport | ( | ) |
void OgreRenderer::cleanup | ( | ) |
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.
Fader* OEngine::Render::OgreRenderer::getFader | ( | ) | [inline] |
Get the screen colour fader.
float OgreRenderer::getFPS | ( | ) |
Ogre::Root* OEngine::Render::OgreRenderer::getRoot | ( | ) | [inline] |
Get the Root.
Ogre::SceneManager* OEngine::Render::OgreRenderer::getScene | ( | ) | [inline] |
Get the scene manager.
SDL_Window* OEngine::Render::OgreRenderer::getSDLWindow | ( | ) | [inline] |
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 OEngine::Render::OgreRenderer::setWindowListener | ( | WindowSizeListener * | listener | ) | [inline] |
void OgreRenderer::update | ( | float | dt | ) |
void OgreRenderer::windowResized | ( | int | x, |
int | y | ||
) |
Ogre::Camera* OEngine::Render::OgreRenderer::mCamera [private] |
Fader* OEngine::Render::OgreRenderer::mFader [private] |
Ogre::Root* OEngine::Render::OgreRenderer::mRoot [private] |
Ogre::SceneManager* OEngine::Render::OgreRenderer::mScene [private] |
SDL_Window* OEngine::Render::OgreRenderer::mSDLWindow [private] |
Ogre::Viewport* OEngine::Render::OgreRenderer::mView [private] |
Ogre::RenderWindow* OEngine::Render::OgreRenderer::mWindow [private] |