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

Ogre::PlatformManager Class Reference

Class which manages the platform settings Ogre runs on. More...

#include <OgrePlatformManager.h>

Inheritance diagram for Ogre::PlatformManager:

Ogre::Singleton< PlatformManager > List of all members.

Public Methods

 PlatformManager ()
 Default constructor. More...

ConfigDialogcreateConfigDialog ()
 Gets a new instance of a platform-specific config dialog. More...

void destroyConfigDialog (ConfigDialog *dlg)
 Destroys an instance of a platform-specific config dialog. More...

ErrorDialogcreateErrorDialog ()
 Gets a new instance of a platform-specific config dialog. More...

void destroyErrorDialog (ErrorDialog *dlg)
 Destroys an instance of a platform-specific error dialog. More...

InputReadercreateInputReader ()
 Gets a new instance of a platform-specific input reader. More...

void destroyInputReader (InputReader *reader)
 Destroys an instance of a platform-specific input reader. More...


Static Public Methods

PlatformManager & getSingleton (void)
 Override standard Singleton retrieval. More...

PlatformManager * getSingletonPtr (void)

Protected Attributes

DLL_CREATECONFIGDIALOG mpfCreateConfigDialog
DLL_CREATEERRORDIALOG mpfCreateErrorDialog
DLL_CREATEINPUTREADER mpfCreateInputReader
DLL_DESTROYCONFIGDIALOG mpfDestroyConfigDialog
DLL_DESTROYERRORDIALOG mpfDestroyErrorDialog
DLL_DESTROYINPUTREADER mpfDestroyInputReader

Static Protected Attributes

PlatformManager * ms_Singleton = 0

Detailed Description

Class which manages the platform settings Ogre runs on.

Remarks:
Because Ogre is designed to be platform-independent, it dynamically loads a library containing all the platform-specific elements like dialogs etc.

This class manages that load and provides a simple interface to the platform.


Constructor & Destructor Documentation

Ogre::PlatformManager::PlatformManager  
 

Default constructor.


Member Function Documentation

ConfigDialog * Ogre::PlatformManager::createConfigDialog  
 

Gets a new instance of a platform-specific config dialog.

Remarks:
The instance returned from this method will be a platform-specific subclass of ConfigDialog, and must be destroyed by the caller when required.

ErrorDialog * Ogre::PlatformManager::createErrorDialog  
 

Gets a new instance of a platform-specific config dialog.

Remarks:
The instance returned from this method will be a platform-specific subclass of ErrorDialog, and must be destroyed by the caller when required.

InputReader * Ogre::PlatformManager::createInputReader  
 

Gets a new instance of a platform-specific input reader.

Remarks:
The instance returned from this method will be a platform-specific subclass of InputReader, and must be destroyed by the caller when required.

void Ogre::PlatformManager::destroyConfigDialog ConfigDialog   dlg
 

Destroys an instance of a platform-specific config dialog.

Remarks:
Required since deletion of objects must be performed on the correct heap.

void Ogre::PlatformManager::destroyErrorDialog ErrorDialog   dlg
 

Destroys an instance of a platform-specific error dialog.

Remarks:
Required since deletion of objects must be performed on the correct heap.

void Ogre::PlatformManager::destroyInputReader InputReader   reader
 

Destroys an instance of a platform-specific input reader.

Remarks:
Required since deletion of objects must be performed on the correct heap.

PlatformManager & Ogre::PlatformManager::getSingleton void    [static]
 

Override standard Singleton retrieval.

Remarks:
Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll.

This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.

Reimplemented from Ogre::Singleton< PlatformManager >.

PlatformManager* Ogre::Singleton< PlatformManager >::getSingletonPtr void    [inline, static, inherited]
 


Member Data Documentation

DLL_CREATECONFIGDIALOG Ogre::PlatformManager::mpfCreateConfigDialog [protected]
 

DLL_CREATEERRORDIALOG Ogre::PlatformManager::mpfCreateErrorDialog [protected]
 

DLL_CREATEINPUTREADER Ogre::PlatformManager::mpfCreateInputReader [protected]
 

DLL_DESTROYCONFIGDIALOG Ogre::PlatformManager::mpfDestroyConfigDialog [protected]
 

DLL_DESTROYERRORDIALOG Ogre::PlatformManager::mpfDestroyErrorDialog [protected]
 

DLL_DESTROYINPUTREADER Ogre::PlatformManager::mpfDestroyInputReader [protected]
 

PlatformManager * Ogre::Singleton< PlatformManager >::ms_Singleton = 0 [static, protected, inherited]
 

Copyright © 2002 by The OGRE Team