Inheritance diagram for mortic::IVideoManager:
Public Member Functions | |
IVideoManager (IRoot *root) | |
Constructor. | |
virtual | ~IVideoManager () |
Destructor. | |
virtual irr::IrrlichtDevice * | getDevice ()=0 |
Get the Irrlicht Device. | |
virtual irr::scene::ISceneManager * | getSceneManager ()=0 |
Get the Irrlicht Scene Manager. | |
virtual irr::video::IVideoDriver * | getVideoDriver ()=0 |
Get the Irrlicht Video Driver. | |
virtual void | run ()=0 |
Run the Video Manager. | |
virtual void | console (std::string str)=0 |
Print something to the in-game console. | |
virtual unsigned int | getTextSize (std::string txt)=0 |
Gets how long text would be in the in-game console. | |
virtual void | screenshot (std::string filename)=0 |
Saves a screenshot to file. |
This manager is responsible for handling the OpenGL and image part of a game. It also deals with the drop-down python console at this moment in time, but that may change. You should always get this object from IRoot::getVideoManager(). The following options are configurable for the video manager:
fullscreen - 1 for fullscreen, 0 for windowed width - the width of the video height - the height of the video bits - 16 or 32 for bits per pixel vsync - 0 for none, 1 for locked at 60fps
Definition at line 42 of file IVideoManager.h.
|
Constructor.
Definition at line 46 of file IVideoManager.h. |
|
Destructor.
Definition at line 49 of file IVideoManager.h. |
|
Print something to the in-game console. This function simply prints something to the in-game console.
|
|
Get the Irrlicht Device. This exposes a lower library, Irrlicht. See the Irrlicht documentation.
|
|
Get the Irrlicht Scene Manager. This exposes a lower library, Irrlicht. See the Irrlicht documentation.
|
|
Gets how long text would be in the in-game console. This is mostly used internally, but is provided as a convenience. Simply measures how many pixels long some text would be on the console.
|
|
Get the Irrlicht Video Driver. This exposes a lower library, Irrlicht. See the Irrlicht documentation.
|
|
Run the Video Manager. This is a proxy function of IRoot::run(). Call that function instead of this one, unless you only want to update the video manager. |
|
Saves a screenshot to file. This function saves the current screen to a file. The filetype is automatically determined, but we recommend .BMP.
|