Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

mortic::IVideoManager Class Reference

A manager for video and textures. More...

Inheritance diagram for mortic::IVideoManager:

mortic::IObject List of all members.

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.

Detailed Description

A manager for video and textures.

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 & Destructor Documentation

mortic::IVideoManager::IVideoManager IRoot root  )  [inline]
 

Constructor.

Definition at line 46 of file IVideoManager.h.

virtual mortic::IVideoManager::~IVideoManager  )  [inline, virtual]
 

Destructor.

Definition at line 49 of file IVideoManager.h.


Member Function Documentation

virtual void mortic::IVideoManager::console std::string  str  )  [pure virtual]
 

Print something to the in-game console.

This function simply prints something to the in-game console.

  • str - the string to print

virtual irr::IrrlichtDevice* mortic::IVideoManager::getDevice  )  [pure virtual]
 

Get the Irrlicht Device.

This exposes a lower library, Irrlicht. See the Irrlicht documentation.

Returns:
the Irrlicht Device

virtual irr::scene::ISceneManager* mortic::IVideoManager::getSceneManager  )  [pure virtual]
 

Get the Irrlicht Scene Manager.

This exposes a lower library, Irrlicht. See the Irrlicht documentation.

Returns:
the Irrlicht Scene Manager

virtual unsigned int mortic::IVideoManager::getTextSize std::string  txt  )  [pure virtual]
 

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.

  • txt - the text to measure
    Returns:
    the length of the text in pixels

virtual irr::video::IVideoDriver* mortic::IVideoManager::getVideoDriver  )  [pure virtual]
 

Get the Irrlicht Video Driver.

This exposes a lower library, Irrlicht. See the Irrlicht documentation.

Returns:
the Irrlicht Video Driver

virtual void mortic::IVideoManager::run  )  [pure virtual]
 

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.

virtual void mortic::IVideoManager::screenshot std::string  filename  )  [pure virtual]
 

Saves a screenshot to file.

This function saves the current screen to a file. The filetype is automatically determined, but we recommend .BMP.

  • filename - the file to save to


Generated on Sat Dec 30 21:21:59 2006 for mortic by  doxygen 1.4.4