The root class of the Ogre system. More...
#include <OgreRoot.h>
Public Types | |
typedef vector< DynLib * >::type | PluginLibList |
typedef vector< Plugin * >::type | PluginInstanceList |
typedef ConstMapIterator < MovableObjectFactoryMap > | MovableObjectFactoryIterator |
Public Member Functions | |
Root (const String &pluginFileName="plugins.cfg", const String &configFileName="ogre.cfg", const String &logFileName="Ogre.log") | |
Constructor. | |
~Root () | |
void | saveConfig (void) |
Saves the details of the current configuration. | |
bool | restoreConfig (void) |
Checks for saved video/sound/etc settings. | |
bool | showConfigDialog (void) |
Displays a dialog asking the user to choose system settings. | |
void | addRenderSystem (RenderSystem *newRend) |
Adds a new rendering subsystem to the list of available renderers. | |
const RenderSystemList & | getAvailableRenderers (void) |
Retrieve a list of the available render systems. | |
RenderSystem * | getRenderSystemByName (const String &name) |
Retrieve a pointer to the render system by the given name. | |
void | setRenderSystem (RenderSystem *system) |
Sets the rendering subsystem to be used. | |
RenderSystem * | getRenderSystem (void) |
Retrieve a pointer to the currently selected render system. | |
RenderWindow * | initialise (bool autoCreateWindow, const String &windowTitle="OGRE Render Window", const String &customCapabilitiesConfig=StringUtil::BLANK) |
Initialises the renderer. | |
bool | isInitialised (void) const |
Returns whether the system is initialised or not. | |
void | useCustomRenderSystemCapabilities (RenderSystemCapabilities *capabilities) |
Requests active RenderSystem to use custom RenderSystemCapabilities. | |
bool | getRemoveRenderQueueStructuresOnClear () const |
Get whether the entire render queue structure should be emptied on clearing, or whether just the objects themselves should be cleared. | |
void | setRemoveRenderQueueStructuresOnClear (bool r) |
Set whether the entire render queue structure should be emptied on clearing, or whether just the objects themselves should be cleared. | |
void | addSceneManagerFactory (SceneManagerFactory *fact) |
Register a new SceneManagerFactory, a factory object for creating instances of specific SceneManagers. | |
void | removeSceneManagerFactory (SceneManagerFactory *fact) |
Unregister a SceneManagerFactory. | |
const SceneManagerMetaData * | getSceneManagerMetaData (const String &typeName) const |
Get more information about a given type of SceneManager. | |
SceneManagerEnumerator::MetaDataIterator | getSceneManagerMetaDataIterator (void) const |
Iterate over all types of SceneManager available for construction, providing some information about each one. | |
SceneManager * | createSceneManager (const String &typeName, const String &instanceName=StringUtil::BLANK) |
Create a SceneManager instance of a given type. | |
SceneManager * | createSceneManager (SceneTypeMask typeMask, const String &instanceName=StringUtil::BLANK) |
Create a SceneManager instance based on scene type support. | |
void | destroySceneManager (SceneManager *sm) |
Destroy an instance of a SceneManager. | |
SceneManager * | getSceneManager (const String &instanceName) const |
Get an existing SceneManager instance that has already been created, identified by the instance name. | |
bool | hasSceneManager (const String &instanceName) const |
Determines if a given SceneManager already exists. | |
SceneManagerEnumerator::SceneManagerIterator | getSceneManagerIterator (void) |
Get an iterator over all the existing SceneManager instances. | |
TextureManager * | getTextureManager (void) |
Retrieves a reference to the current TextureManager. | |
MeshManager * | getMeshManager (void) |
Retrieves a reference to the current MeshManager. | |
String | getErrorDescription (long errorNumber) |
Utility function for getting a better description of an error code. | |
void | addFrameListener (FrameListener *newListener) |
Registers a FrameListener which will be called back every frame. | |
void | removeFrameListener (FrameListener *oldListener) |
Removes a FrameListener from the list of listening classes. | |
void | queueEndRendering (void) |
Queues the end of rendering. | |
void | startRendering (void) |
Starts / restarts the automatic rendering cycle. | |
bool | renderOneFrame (void) |
Render one frame. | |
bool | renderOneFrame (Real timeSinceLastFrame) |
Render one frame, with custom frame time information. | |
void | shutdown (void) |
Shuts down the system manually. | |
void | addResourceLocation (const String &name, const String &locType, const String &groupName=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, bool recursive=false) |
Adds a location to the list of searchable locations for a Resource type. | |
void | removeResourceLocation (const String &name, const String &groupName=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME) |
Removes a resource location from the list. | |
DataStreamPtr | createFileStream (const String &filename, const String &groupName=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, bool overwrite=false, const String &locationPattern=StringUtil::BLANK) |
Helper method to assist you in creating writeable file streams. | |
DataStreamPtr | openFileStream (const String &filename, const String &groupName=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, const String &locationPattern=StringUtil::BLANK) |
Helper method to assist you in accessing readable file streams. | |
void | convertColourValue (const ColourValue &colour, uint32 *pDest) |
Generates a packed data version of the passed in ColourValue suitable for use with the current RenderSystem. | |
RenderWindow * | getAutoCreatedWindow (void) |
Retrieves a pointer to the window that was created automatically. | |
RenderWindow * | createRenderWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0) |
bool | createRenderWindows (const RenderWindowDescriptionList &renderWindowDescriptions, RenderWindowList &createdWindows) |
RenderTarget * | detachRenderTarget (RenderTarget *pWin) |
Detaches a RenderTarget from the active render system and returns a pointer to it. | |
RenderTarget * | detachRenderTarget (const String &name) |
Detaches a named RenderTarget from the active render system and returns a pointer to it. | |
void | destroyRenderTarget (RenderTarget *target) |
Destroys the given RenderTarget. | |
void | destroyRenderTarget (const String &name) |
Destroys the given named RenderTarget. | |
RenderTarget * | getRenderTarget (const String &name) |
Retrieves a pointer to a named render target. | |
void | loadPlugin (const String &pluginName) |
Manually load a Plugin contained in a DLL / DSO. | |
void | unloadPlugin (const String &pluginName) |
Manually unloads a Plugin contained in a DLL / DSO. | |
void | installPlugin (Plugin *plugin) |
Install a new plugin. | |
void | uninstallPlugin (Plugin *plugin) |
Uninstall an existing plugin. | |
const PluginInstanceList & | getInstalledPlugins () const |
Gets a read-only list of the currently installed plugins. | |
Timer * | getTimer (void) |
Gets a pointer to the central timer used for all OGRE timings. | |
bool | _fireFrameStarted (FrameEvent &evt) |
Method for raising frame started events. | |
bool | _fireFrameRenderingQueued (FrameEvent &evt) |
Method for raising frame rendering queued events. | |
bool | _fireFrameEnded (FrameEvent &evt) |
Method for raising frame ended events. | |
bool | _fireFrameStarted () |
Method for raising frame started events. | |
bool | _fireFrameRenderingQueued () |
Method for raising frame rendering queued events. | |
bool | _fireFrameEnded () |
Method for raising frame ended events. | |
unsigned long | getNextFrameNumber (void) const |
Gets the number of the next frame to be rendered. | |
SceneManager * | _getCurrentSceneManager (void) const |
Returns the scene manager currently being used to render a frame. | |
void | _pushCurrentSceneManager (SceneManager *sm) |
Pushes the scene manager currently being used to render. | |
void | _popCurrentSceneManager (SceneManager *sm) |
Pops the scene manager currently being used to render. | |
bool | _updateAllRenderTargets (void) |
Internal method used for updating all RenderTarget objects (windows, renderable textures etc) which are set to auto-update. | |
bool | _updateAllRenderTargets (FrameEvent &evt) |
Internal method used for updating all RenderTarget objects (windows, renderable textures etc) which are set to auto-update, with a custom time passed to the frameRenderingQueued events. | |
RenderQueueInvocationSequence * | createRenderQueueInvocationSequence (const String &name) |
Create a new RenderQueueInvocationSequence, useful for linking to Viewport instances to perform custom rendering. | |
RenderQueueInvocationSequence * | getRenderQueueInvocationSequence (const String &name) |
Get a RenderQueueInvocationSequence. | |
void | destroyRenderQueueInvocationSequence (const String &name) |
Destroy a RenderQueueInvocationSequence. | |
void | destroyAllRenderQueueInvocationSequences (void) |
Destroy all RenderQueueInvocationSequences. | |
void | clearEventTimes (void) |
Clears the history of all event times. | |
void | setFrameSmoothingPeriod (Real period) |
Sets the period over which OGRE smooths out fluctuations in frame times. | |
Real | getFrameSmoothingPeriod (void) const |
Gets the period over which OGRE smooths out fluctuations in frame times. | |
void | addMovableObjectFactory (MovableObjectFactory *fact, bool overrideExisting=false) |
Register a new MovableObjectFactory which will create new MovableObject instances of a particular type, as identified by the getType() method. | |
void | removeMovableObjectFactory (MovableObjectFactory *fact) |
Removes a previously registered MovableObjectFactory. | |
bool | hasMovableObjectFactory (const String &typeName) const |
Checks whether a factory is registered for a given MovableObject type. | |
MovableObjectFactory * | getMovableObjectFactory (const String &typeName) |
Get a MovableObjectFactory for the given type. | |
uint32 | _allocateNextMovableObjectTypeFlag (void) |
Allocate the next MovableObject type flag. | |
MovableObjectFactoryIterator | getMovableObjectFactoryIterator (void) const |
Return an iterator over all the MovableObjectFactory instances currently registered. | |
unsigned int | getDisplayMonitorCount () const |
Gets the number of display monitors. | |
WorkQueue * | getWorkQueue () const |
Get the WorkQueue for processing background tasks. | |
void | setWorkQueue (WorkQueue *queue) |
Replace the current work queue with an alternative. | |
void | setBlendIndicesGpuRedundant (bool redundant) |
Sets whether blend indices information needs to be passed to the GPU. | |
bool | isBlendIndicesGpuRedundant () const |
Returns whether blend indices information needs to be passed to the GPU see setBlendIndicesGpuRedundant() for more information. | |
void | setBlendWeightsGpuRedundant (bool redundant) |
Sets whether blend weights information needs to be passed to the GPU. | |
bool | isBlendWeightsGpuRedundant () const |
Returns whether blend weights information needs to be passed to the GPU see setBlendWeightsGpuRedundant() for more information. | |
void | setDefaultMinPixelSize (Real pixelSize) |
Set the default minimum pixel size for object to be rendered by. | |
Real | getDefaultMinPixelSize () |
Get the default minimum pixel size for object to be rendered by. | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
Static Public Member Functions | |
static Root & | getSingleton (void) |
Override standard Singleton retrieval. | |
static Root * | getSingletonPtr (void) |
Override standard Singleton retrieval. | |
Protected Types | |
enum | FrameEventTimeType { FETT_ANY = 0, FETT_STARTED = 1, FETT_QUEUED = 2, FETT_ENDED = 3, FETT_COUNT = 4 } |
Indicates the type of event to be considered by calculateEventTime(). More... | |
typedef deque< SceneManager * > ::type | SceneManagerStack |
typedef map< String, MovableObjectFactory * >::type | MovableObjectFactoryMap |
typedef map< String, RenderQueueInvocationSequence * > ::type | RenderQueueInvocationSequenceMap |
typedef deque< unsigned long > ::type | EventTimesQueue |
Contains the times of recently fired events. | |
Protected Member Functions | |
void | loadPlugins (const String &pluginsfile="plugins.cfg") |
Method reads a plugins configuration file and instantiates all plugins. | |
void | initialisePlugins () |
Initialise all loaded plugins - allows plugins to perform actions once the renderer is initialised. | |
void | shutdownPlugins () |
Shuts down all loaded plugins - allows things to be tidied up whilst all plugins are still loaded. | |
void | unloadPlugins () |
Unloads all loaded plugins. | |
void | oneTimePostWindowInit (void) |
Real | calculateEventTime (unsigned long now, FrameEventTimeType type) |
Internal method for calculating the average time between recently fired events. | |
void | populateFrameEvent (FrameEventTimeType type, FrameEvent &evtToUpdate) |
Update a set of event times (note, progressive, only call once for each type per frame). | |
Protected Attributes | |
RenderSystemList | mRenderers |
RenderSystem * | mActiveRenderer |
String | mVersion |
String | mConfigFileName |
bool | mQueuedEnd |
bool | mFirstTimePostWindowInit |
LogManager * | mLogManager |
ControllerManager * | mControllerManager |
SceneManagerEnumerator * | mSceneManagerEnum |
SceneManagerStack | mSceneManagerStack |
DynLibManager * | mDynLibManager |
ArchiveManager * | mArchiveManager |
MaterialManager * | mMaterialManager |
MeshManager * | mMeshManager |
ParticleSystemManager * | mParticleManager |
SkeletonManager * | mSkeletonManager |
OverlayElementFactory * | mPanelFactory |
OverlayElementFactory * | mBorderPanelFactory |
OverlayElementFactory * | mTextAreaFactory |
OverlayManager * | mOverlayManager |
FontManager * | mFontManager |
ArchiveFactory * | mZipArchiveFactory |
ArchiveFactory * | mEmbeddedZipArchiveFactory |
ArchiveFactory * | mFileSystemArchiveFactory |
ResourceGroupManager * | mResourceGroupManager |
ResourceBackgroundQueue * | mResourceBackgroundQueue |
ShadowTextureManager * | mShadowTextureManager |
RenderSystemCapabilitiesManager * | mRenderSystemCapabilitiesManager |
ScriptCompilerManager * | mCompilerManager |
LodStrategyManager * | mLodStrategyManager |
Timer * | mTimer |
RenderWindow * | mAutoWindow |
Profiler * | mProfiler |
HighLevelGpuProgramManager * | mHighLevelGpuProgramManager |
ExternalTextureSourceManager * | mExternalTextureSourceManager |
CompositorManager * | mCompositorManager |
unsigned long | mNextFrame |
Real | mFrameSmoothingTime |
bool | mRemoveQueueStructuresOnClear |
Real | mDefaultMinPixelSize |
PluginLibList | mPluginLibs |
List of plugin DLLs loaded. | |
PluginInstanceList | mPlugins |
List of Plugin instances registered. | |
MovableObjectFactoryMap | mMovableObjectFactoryMap |
uint32 | mNextMovableObjectTypeFlag |
MovableObjectFactory * | mEntityFactory |
MovableObjectFactory * | mLightFactory |
MovableObjectFactory * | mBillboardSetFactory |
MovableObjectFactory * | mManualObjectFactory |
MovableObjectFactory * | mBillboardChainFactory |
MovableObjectFactory * | mRibbonTrailFactory |
RenderQueueInvocationSequenceMap | mRQSequenceMap |
bool | mIsInitialised |
Are we initialised yet? | |
WorkQueue * | mWorkQueue |
bool | mIsBlendIndicesGpuRedundant |
Tells whether blend indices information needs to be passed to the GPU. | |
bool | mIsBlendWeightsGpuRedundant |
Tells whether blend weights information needs to be passed to the GPU. | |
set< FrameListener * >::type | mFrameListeners |
Set of registered frame listeners. | |
set< FrameListener * >::type | mRemovedFrameListeners |
Set of frame listeners marked for removal. | |
EventTimesQueue | mEventTimes [FETT_COUNT] |
Static Protected Attributes | |
static Root * | msSingleton |
Friends | |
class | RenderSystem |
The root class of the Ogre system.
Definition at line 67 of file OgreRoot.h.
typedef deque<unsigned long>::type Ogre::Root::EventTimesQueue [protected] |
Contains the times of recently fired events.
Definition at line 191 of file OgreRoot.h.
Definition at line 1007 of file OgreRoot.h.
typedef map<String, MovableObjectFactory*>::type Ogre::Root::MovableObjectFactoryMap [protected] |
Definition at line 128 of file OgreRoot.h.
typedef vector<Plugin*>::type Ogre::Root::PluginInstanceList |
Definition at line 121 of file OgreRoot.h.
typedef vector<DynLib*>::type Ogre::Root::PluginLibList |
Definition at line 120 of file OgreRoot.h.
typedef map<String, RenderQueueInvocationSequence*>::type Ogre::Root::RenderQueueInvocationSequenceMap [protected] |
Definition at line 139 of file OgreRoot.h.
typedef deque<SceneManager*>::type Ogre::Root::SceneManagerStack [protected] |
Definition at line 85 of file OgreRoot.h.
enum Ogre::Root::FrameEventTimeType [protected] |
Indicates the type of event to be considered by calculateEventTime().
Definition at line 182 of file OgreRoot.h.
Ogre::Root::Root | ( | const String & | pluginFileName = "plugins.cfg" , |
|
const String & | configFileName = "ogre.cfg" , |
|||
const String & | logFileName = "Ogre.log" | |||
) |
Constructor.
pluginFileName | The file that contains plugins information. Defaults to "plugins.cfg", may be left blank to ignore. | |
configFileName | The file that contains the configuration to be loaded. Defaults to "ogre.cfg", may be left blank to load nothing. | |
logFileName | The logfile to create, defaults to Ogre.log, may be left blank if you've already set up LogManager & Log yourself |
Ogre::Root::~Root | ( | ) |
uint32 Ogre::Root::_allocateNextMovableObjectTypeFlag | ( | void | ) |
Allocate the next MovableObject type flag.
bool Ogre::Root::_fireFrameEnded | ( | ) |
Method for raising frame ended events.
bool Ogre::Root::_fireFrameEnded | ( | FrameEvent & | evt | ) |
Method for raising frame ended events.
evt | Event object which includes all the timing information which you have calculated for yourself |
bool Ogre::Root::_fireFrameRenderingQueued | ( | ) |
Method for raising frame rendering queued events.
bool Ogre::Root::_fireFrameRenderingQueued | ( | FrameEvent & | evt | ) |
Method for raising frame rendering queued events.
bool Ogre::Root::_fireFrameStarted | ( | ) |
Method for raising frame started events.
bool Ogre::Root::_fireFrameStarted | ( | FrameEvent & | evt | ) |
Method for raising frame started events.
evt | Event object which includes all the timing information which you have calculated for yourself |
SceneManager* Ogre::Root::_getCurrentSceneManager | ( | void | ) | const |
Returns the scene manager currently being used to render a frame.
void Ogre::Root::_popCurrentSceneManager | ( | SceneManager * | sm | ) |
Pops the scene manager currently being used to render.
void Ogre::Root::_pushCurrentSceneManager | ( | SceneManager * | sm | ) |
Pushes the scene manager currently being used to render.
bool Ogre::Root::_updateAllRenderTargets | ( | FrameEvent & | evt | ) |
Internal method used for updating all RenderTarget objects (windows, renderable textures etc) which are set to auto-update, with a custom time passed to the frameRenderingQueued events.
bool Ogre::Root::_updateAllRenderTargets | ( | void | ) |
Internal method used for updating all RenderTarget objects (windows, renderable textures etc) which are set to auto-update.
void Ogre::Root::addFrameListener | ( | FrameListener * | newListener | ) |
Registers a FrameListener which will be called back every frame.
void Ogre::Root::addMovableObjectFactory | ( | MovableObjectFactory * | fact, | |
bool | overrideExisting = false | |||
) |
Register a new MovableObjectFactory which will create new MovableObject instances of a particular type, as identified by the getType() method.
fact | Pointer to the factory instance | |
overrideExisting | Set this to true to override any existing factories which are registered for the same type. You should only change this if you are very sure you know what you're doing. |
void Ogre::Root::addRenderSystem | ( | RenderSystem * | newRend | ) |
Adds a new rendering subsystem to the list of available renderers.
void Ogre::Root::addResourceLocation | ( | const String & | name, | |
const String & | locType, | |||
const String & | groupName = ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME , |
|||
bool | recursive = false | |||
) |
Adds a location to the list of searchable locations for a Resource type.
name | The name of the location, e.g. './data' or '/compressed/gamedata.zip' | |
locType | A string identifying the location type, e.g. 'FileSystem' (for folders), 'Zip' etc. Must map to a registered plugin which deals with this type (FileSystem and Zip should always be available) | |
groupName | Type of name of the resource group which this location should apply to; defaults to the General group which applies to all non-specific resources. | |
recursive | If the resource location has a concept of recursive directory traversal, enabling this option will mean you can load resources in subdirectories using only their unqualified name. The default is to disable this so that resources in subdirectories with the same name are still unique. |
void Ogre::Root::addSceneManagerFactory | ( | SceneManagerFactory * | fact | ) |
Register a new SceneManagerFactory, a factory object for creating instances of specific SceneManagers.
Real Ogre::Root::calculateEventTime | ( | unsigned long | now, | |
FrameEventTimeType | type | |||
) | [protected] |
Internal method for calculating the average time between recently fired events.
now | The current time in ms. | |
type | The type of event to be considered. |
void Ogre::Root::clearEventTimes | ( | void | ) |
Clears the history of all event times.
void Ogre::Root::convertColourValue | ( | const ColourValue & | colour, | |
uint32 * | pDest | |||
) |
Generates a packed data version of the passed in ColourValue suitable for use with the current RenderSystem.
colour | The colour to convert | |
pDest | Pointer to location to put the result. |
DataStreamPtr Ogre::Root::createFileStream | ( | const String & | filename, | |
const String & | groupName = ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME , |
|||
bool | overwrite = false , |
|||
const String & | locationPattern = StringUtil::BLANK | |||
) |
Helper method to assist you in creating writeable file streams.
filename | The name of the file to create. If it includes path separators, the filesystem will be accessed direct. If no path separators are present the resource system is used, falling back on the raw filesystem after. | |
groupName | The name of the group in which to create the file, if the resource system is used | |
overwrite | If true, an existing file will be overwritten, if false an error will occur if the file already exists | |
locationPattern | If the resource group contains multiple locations, then usually the file will be created in the first writable location. If you want to be more specific, you can include a location pattern here and only locations which match that pattern (as determined by StringUtil::match) will be considered candidates for creation. |
RenderQueueInvocationSequence* Ogre::Root::createRenderQueueInvocationSequence | ( | const String & | name | ) |
Create a new RenderQueueInvocationSequence, useful for linking to Viewport instances to perform custom rendering.
name | The name to give the new sequence |
RenderWindow* Ogre::Root::createRenderWindow | ( | const String & | name, | |
unsigned int | width, | |||
unsigned int | height, | |||
bool | fullScreen, | |||
const NameValuePairList * | miscParams = 0 | |||
) |
Creates a new rendering window.
name | The name of the window. Used in other methods later like setRenderTarget and getRenderTarget. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
width | The width of the new window. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
height | The height of the new window. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fullScreen | Specify true to make the window full screen without borders, title bar or menu bar. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
miscParams | A NameValuePairList describing the other parameters for the new rendering window. Options are case sensitive. Unrecognised parameters will be ignored silently. These values might be platform dependent, but these are present for all platforms unless indicated otherwise:
|
bool Ogre::Root::createRenderWindows | ( | const RenderWindowDescriptionList & | renderWindowDescriptions, | |
RenderWindowList & | createdWindows | |||
) |
Creates multiple rendering windows.
renderWindowDescriptions | Array of structures containing the descriptions of each render window. The structure's members are the same as the parameters of _createRenderWindow: name width height fullScreen miscParams See _createRenderWindow for details about each member. | |
createdWindows | This array will hold the created render windows. |
SceneManager* Ogre::Root::createSceneManager | ( | SceneTypeMask | typeMask, | |
const String & | instanceName = StringUtil::BLANK | |||
) |
Create a SceneManager instance based on scene type support.
typeMask | A mask containing one or more SceneType flags | |
instanceName | Optional name to given the new instance that is created. If you leave this blank, an auto name will be assigned. |
SceneManager* Ogre::Root::createSceneManager | ( | const String & | typeName, | |
const String & | instanceName = StringUtil::BLANK | |||
) |
Create a SceneManager instance of a given type.
typeName | String identifying a unique SceneManager type | |
instanceName | Optional name to given the new instance that is created. If you leave this blank, an auto name will be assigned. |
void Ogre::Root::destroyAllRenderQueueInvocationSequences | ( | void | ) |
Destroy all RenderQueueInvocationSequences.
name | The name to identify the sequence |
void Ogre::Root::destroyRenderQueueInvocationSequence | ( | const String & | name | ) |
Destroy a RenderQueueInvocationSequence.
name | The name to identify the sequence |
void Ogre::Root::destroyRenderTarget | ( | const String & | name | ) |
Destroys the given named RenderTarget.
void Ogre::Root::destroyRenderTarget | ( | RenderTarget * | target | ) |
Destroys the given RenderTarget.
void Ogre::Root::destroySceneManager | ( | SceneManager * | sm | ) |
Destroy an instance of a SceneManager.
RenderTarget* Ogre::Root::detachRenderTarget | ( | const String & | name | ) |
Detaches a named RenderTarget from the active render system and returns a pointer to it.
RenderTarget* Ogre::Root::detachRenderTarget | ( | RenderTarget * | pWin | ) |
Detaches a RenderTarget from the active render system and returns a pointer to it.
RenderWindow* Ogre::Root::getAutoCreatedWindow | ( | void | ) |
const RenderSystemList& Ogre::Root::getAvailableRenderers | ( | void | ) |
Retrieve a list of the available render systems.
Real Ogre::Root::getDefaultMinPixelSize | ( | ) |
Get the default minimum pixel size for object to be rendered by.
Definition at line 1068 of file OgreRoot.h.
unsigned int Ogre::Root::getDisplayMonitorCount | ( | ) | const |
Gets the number of display monitors.
String Ogre::Root::getErrorDescription | ( | long | errorNumber | ) |
Utility function for getting a better description of an error code.
Real Ogre::Root::getFrameSmoothingPeriod | ( | void | ) | const |
Gets the period over which OGRE smooths out fluctuations in frame times.
Definition at line 972 of file OgreRoot.h.
const PluginInstanceList& Ogre::Root::getInstalledPlugins | ( | ) | const |
Gets a read-only list of the currently installed plugins.
Definition at line 737 of file OgreRoot.h.
MeshManager* Ogre::Root::getMeshManager | ( | void | ) |
Retrieves a reference to the current MeshManager.
MovableObjectFactory* Ogre::Root::getMovableObjectFactory | ( | const String & | typeName | ) |
Get a MovableObjectFactory for the given type.
MovableObjectFactoryIterator Ogre::Root::getMovableObjectFactoryIterator | ( | void | ) | const |
Return an iterator over all the MovableObjectFactory instances currently registered.
unsigned long Ogre::Root::getNextFrameNumber | ( | void | ) | const |
Gets the number of the next frame to be rendered.
Definition at line 843 of file OgreRoot.h.
bool Ogre::Root::getRemoveRenderQueueStructuresOnClear | ( | ) | const |
Get whether the entire render queue structure should be emptied on clearing, or whether just the objects themselves should be cleared.
Definition at line 340 of file OgreRoot.h.
RenderQueueInvocationSequence* Ogre::Root::getRenderQueueInvocationSequence | ( | const String & | name | ) |
Get a RenderQueueInvocationSequence.
name | The name to identify the sequence |
RenderSystem* Ogre::Root::getRenderSystem | ( | void | ) |
Retrieve a pointer to the currently selected render system.
RenderSystem* Ogre::Root::getRenderSystemByName | ( | const String & | name | ) |
Retrieve a pointer to the render system by the given name.
name | Name of the render system intend to retrieve. |
RenderTarget* Ogre::Root::getRenderTarget | ( | const String & | name | ) |
Retrieves a pointer to a named render target.
SceneManager* Ogre::Root::getSceneManager | ( | const String & | instanceName | ) | const |
Get an existing SceneManager instance that has already been created, identified by the instance name.
instanceName | The name of the instance to retrieve. |
SceneManagerEnumerator::SceneManagerIterator Ogre::Root::getSceneManagerIterator | ( | void | ) |
Get an iterator over all the existing SceneManager instances.
const SceneManagerMetaData* Ogre::Root::getSceneManagerMetaData | ( | const String & | typeName | ) | const |
Get more information about a given type of SceneManager.
typeName | The type name of the SceneManager you want to enquire on. If you don't know the typeName already, you can iterate over the metadata for all types using getMetaDataIterator. |
SceneManagerEnumerator::MetaDataIterator Ogre::Root::getSceneManagerMetaDataIterator | ( | void | ) | const |
Iterate over all types of SceneManager available for construction, providing some information about each one.
static Root& Ogre::Root::getSingleton | ( | void | ) | [static] |
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< Root >.
static Root* Ogre::Root::getSingletonPtr | ( | void | ) | [static] |
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< Root >.
TextureManager* Ogre::Root::getTextureManager | ( | void | ) |
Retrieves a reference to the current TextureManager.
Timer* Ogre::Root::getTimer | ( | void | ) |
Gets a pointer to the central timer used for all OGRE timings.
WorkQueue* Ogre::Root::getWorkQueue | ( | ) | const |
Get the WorkQueue for processing background tasks.
You are free to add new requests and handlers to this queue to process your custom background tasks using the shared thread pool. However, you must remember to assign yourself a new channel through which to process your tasks.
Definition at line 1024 of file OgreRoot.h.
bool Ogre::Root::hasMovableObjectFactory | ( | const String & | typeName | ) | const |
Checks whether a factory is registered for a given MovableObject type.
bool Ogre::Root::hasSceneManager | ( | const String & | instanceName | ) | const |
Determines if a given SceneManager already exists.
instanceName | The name of the instance to retrieve. |
RenderWindow* Ogre::Root::initialise | ( | bool | autoCreateWindow, | |
const String & | windowTitle = "OGRE Render Window" , |
|||
const String & | customCapabilitiesConfig = StringUtil::BLANK | |||
) |
Initialises the renderer.
autoCreateWindow | If true, a rendering window will automatically be created (saving a call to Root::createRenderWindow). The window will be created based on the options currently set on the render system. |
void Ogre::Root::initialisePlugins | ( | ) | [protected] |
Initialise all loaded plugins - allows plugins to perform actions once the renderer is initialised.
void Ogre::Root::installPlugin | ( | Plugin * | plugin | ) |
Install a new plugin.
bool Ogre::Root::isBlendIndicesGpuRedundant | ( | ) | const |
Returns whether blend indices information needs to be passed to the GPU see setBlendIndicesGpuRedundant() for more information.
Definition at line 1046 of file OgreRoot.h.
bool Ogre::Root::isBlendWeightsGpuRedundant | ( | ) | const |
Returns whether blend weights information needs to be passed to the GPU see setBlendWeightsGpuRedundant() for more information.
Definition at line 1058 of file OgreRoot.h.
bool Ogre::Root::isInitialised | ( | void | ) | const |
Returns whether the system is initialised or not.
Definition at line 328 of file OgreRoot.h.
void Ogre::Root::loadPlugin | ( | const String & | pluginName | ) |
Manually load a Plugin contained in a DLL / DSO.
pluginName | Name of the plugin library to load |
void Ogre::Root::loadPlugins | ( | const String & | pluginsfile = "plugins.cfg" |
) | [protected] |
Method reads a plugins configuration file and instantiates all plugins.
pluginsfile | The file that contains plugins information. Defaults to "plugins.cfg". |
void Ogre::Root::oneTimePostWindowInit | ( | void | ) | [protected] |
DataStreamPtr Ogre::Root::openFileStream | ( | const String & | filename, | |
const String & | groupName = ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME , |
|||
const String & | locationPattern = StringUtil::BLANK | |||
) |
Helper method to assist you in accessing readable file streams.
filename | The name of the file to open. | |
groupName | The name of the group in which to create the file, if the resource system is used | |
locationPattern | If the resource group contains multiple locations, then usually the file will be created in the first writable location. If you want to be more specific, you can include a location pattern here and only locations which match that pattern (as determined by StringUtil::match) will be considered candidates for creation. |
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
void Ogre::Root::populateFrameEvent | ( | FrameEventTimeType | type, | |
FrameEvent & | evtToUpdate | |||
) | [protected] |
Update a set of event times (note, progressive, only call once for each type per frame).
void Ogre::Root::queueEndRendering | ( | void | ) |
Queues the end of rendering.
void Ogre::Root::removeFrameListener | ( | FrameListener * | oldListener | ) |
Removes a FrameListener from the list of listening classes.
void Ogre::Root::removeMovableObjectFactory | ( | MovableObjectFactory * | fact | ) |
Removes a previously registered MovableObjectFactory.
void Ogre::Root::removeResourceLocation | ( | const String & | name, | |
const String & | groupName = ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME | |||
) |
Removes a resource location from the list.
name | The name of the resource location as specified in addResourceLocation | |
groupName | The name of the resource group to which this location was assigned. |
void Ogre::Root::removeSceneManagerFactory | ( | SceneManagerFactory * | fact | ) |
Unregister a SceneManagerFactory.
bool Ogre::Root::renderOneFrame | ( | Real | timeSinceLastFrame | ) |
Render one frame, with custom frame time information.
bool Ogre::Root::renderOneFrame | ( | void | ) |
Render one frame.
bool Ogre::Root::restoreConfig | ( | void | ) |
Checks for saved video/sound/etc settings.
void Ogre::Root::saveConfig | ( | void | ) |
Saves the details of the current configuration.
void Ogre::Root::setBlendIndicesGpuRedundant | ( | bool | redundant | ) |
Sets whether blend indices information needs to be passed to the GPU.
When entities use software animation they remove blend information such as indices and weights from the vertex buffers sent to the graphic card. This function can be used to limit which information is removed.
redundant | Set to true to remove blend indices information. |
Definition at line 1042 of file OgreRoot.h.
void Ogre::Root::setBlendWeightsGpuRedundant | ( | bool | redundant | ) |
Sets whether blend weights information needs to be passed to the GPU.
When entities use software animation they remove blend information such as indices and weights from the vertex buffers sent to the graphic card. This function can be used to limit which information is removed.
redundant | Set to true to remove blend weights information. |
Definition at line 1054 of file OgreRoot.h.
void Ogre::Root::setDefaultMinPixelSize | ( | Real | pixelSize | ) |
Set the default minimum pixel size for object to be rendered by.
Definition at line 1064 of file OgreRoot.h.
void Ogre::Root::setFrameSmoothingPeriod | ( | Real | period | ) |
Sets the period over which OGRE smooths out fluctuations in frame times.
Definition at line 970 of file OgreRoot.h.
void Ogre::Root::setRemoveRenderQueueStructuresOnClear | ( | bool | r | ) |
Set whether the entire render queue structure should be emptied on clearing, or whether just the objects themselves should be cleared.
Definition at line 345 of file OgreRoot.h.
void Ogre::Root::setRenderSystem | ( | RenderSystem * | system | ) |
Sets the rendering subsystem to be used.
system | Pointer to the render system to use. |
void Ogre::Root::setWorkQueue | ( | WorkQueue * | queue | ) |
Replace the current work queue with an alternative.
You can use this method to replace the internal implementation of WorkQueue with your own, e.g. to externalise the processing of background events. Doing so will delete the existing queue and replace it with this one.
bool Ogre::Root::showConfigDialog | ( | void | ) |
Displays a dialog asking the user to choose system settings.
void Ogre::Root::shutdown | ( | void | ) |
void Ogre::Root::shutdownPlugins | ( | ) | [protected] |
Shuts down all loaded plugins - allows things to be tidied up whilst all plugins are still loaded.
void Ogre::Root::startRendering | ( | void | ) |
Starts / restarts the automatic rendering cycle.
void Ogre::Root::uninstallPlugin | ( | Plugin * | plugin | ) |
Uninstall an existing plugin.
void Ogre::Root::unloadPlugin | ( | const String & | pluginName | ) |
Manually unloads a Plugin contained in a DLL / DSO.
pluginName | Name of the plugin library to unload |
void Ogre::Root::unloadPlugins | ( | ) | [protected] |
Unloads all loaded plugins.
void Ogre::Root::useCustomRenderSystemCapabilities | ( | RenderSystemCapabilities * | capabilities | ) |
Requests active RenderSystem to use custom RenderSystemCapabilities.
friend class RenderSystem [friend] |
Definition at line 71 of file OgreRoot.h.
RenderSystem* Ogre::Root::mActiveRenderer [protected] |
Definition at line 74 of file OgreRoot.h.
ArchiveManager* Ogre::Root::mArchiveManager [protected] |
Definition at line 88 of file OgreRoot.h.
RenderWindow* Ogre::Root::mAutoWindow [protected] |
Definition at line 109 of file OgreRoot.h.
MovableObjectFactory* Ogre::Root::mBillboardChainFactory [protected] |
Definition at line 136 of file OgreRoot.h.
MovableObjectFactory* Ogre::Root::mBillboardSetFactory [protected] |
Definition at line 134 of file OgreRoot.h.
OverlayElementFactory* Ogre::Root::mBorderPanelFactory [protected] |
Definition at line 94 of file OgreRoot.h.
ScriptCompilerManager* Ogre::Root::mCompilerManager [protected] |
Definition at line 105 of file OgreRoot.h.
CompositorManager* Ogre::Root::mCompositorManager [protected] |
Definition at line 113 of file OgreRoot.h.
String Ogre::Root::mConfigFileName [protected] |
Definition at line 76 of file OgreRoot.h.
ControllerManager* Ogre::Root::mControllerManager [protected] |
Definition at line 83 of file OgreRoot.h.
Real Ogre::Root::mDefaultMinPixelSize [protected] |
Definition at line 117 of file OgreRoot.h.
DynLibManager* Ogre::Root::mDynLibManager [protected] |
Definition at line 87 of file OgreRoot.h.
ArchiveFactory* Ogre::Root::mEmbeddedZipArchiveFactory [protected] |
Definition at line 99 of file OgreRoot.h.
MovableObjectFactory* Ogre::Root::mEntityFactory [protected] |
Definition at line 132 of file OgreRoot.h.
EventTimesQueue Ogre::Root::mEventTimes[FETT_COUNT] [protected] |
Definition at line 192 of file OgreRoot.h.
Definition at line 112 of file OgreRoot.h.
ArchiveFactory* Ogre::Root::mFileSystemArchiveFactory [protected] |
Definition at line 100 of file OgreRoot.h.
bool Ogre::Root::mFirstTimePostWindowInit [protected] |
Definition at line 79 of file OgreRoot.h.
FontManager* Ogre::Root::mFontManager [protected] |
Definition at line 97 of file OgreRoot.h.
set<FrameListener*>::type Ogre::Root::mFrameListeners [protected] |
Set of registered frame listeners.
Definition at line 176 of file OgreRoot.h.
Real Ogre::Root::mFrameSmoothingTime [protected] |
Definition at line 115 of file OgreRoot.h.
Definition at line 111 of file OgreRoot.h.
bool Ogre::Root::mIsBlendIndicesGpuRedundant [protected] |
Tells whether blend indices information needs to be passed to the GPU.
Definition at line 148 of file OgreRoot.h.
bool Ogre::Root::mIsBlendWeightsGpuRedundant [protected] |
Tells whether blend weights information needs to be passed to the GPU.
Definition at line 150 of file OgreRoot.h.
bool Ogre::Root::mIsInitialised [protected] |
Are we initialised yet?
Definition at line 143 of file OgreRoot.h.
MovableObjectFactory* Ogre::Root::mLightFactory [protected] |
Definition at line 133 of file OgreRoot.h.
LodStrategyManager* Ogre::Root::mLodStrategyManager [protected] |
Definition at line 106 of file OgreRoot.h.
LogManager* Ogre::Root::mLogManager [protected] |
Definition at line 82 of file OgreRoot.h.
MovableObjectFactory* Ogre::Root::mManualObjectFactory [protected] |
Definition at line 135 of file OgreRoot.h.
MaterialManager* Ogre::Root::mMaterialManager [protected] |
Definition at line 89 of file OgreRoot.h.
MeshManager* Ogre::Root::mMeshManager [protected] |
Definition at line 90 of file OgreRoot.h.
Definition at line 129 of file OgreRoot.h.
unsigned long Ogre::Root::mNextFrame [protected] |
Definition at line 114 of file OgreRoot.h.
uint32 Ogre::Root::mNextMovableObjectTypeFlag [protected] |
Definition at line 130 of file OgreRoot.h.
OverlayManager* Ogre::Root::mOverlayManager [protected] |
Definition at line 96 of file OgreRoot.h.
OverlayElementFactory* Ogre::Root::mPanelFactory [protected] |
Definition at line 93 of file OgreRoot.h.
ParticleSystemManager* Ogre::Root::mParticleManager [protected] |
Definition at line 91 of file OgreRoot.h.
PluginLibList Ogre::Root::mPluginLibs [protected] |
List of plugin DLLs loaded.
Definition at line 124 of file OgreRoot.h.
PluginInstanceList Ogre::Root::mPlugins [protected] |
List of Plugin instances registered.
Definition at line 126 of file OgreRoot.h.
Profiler* Ogre::Root::mProfiler [protected] |
Definition at line 110 of file OgreRoot.h.
bool Ogre::Root::mQueuedEnd [protected] |
Definition at line 77 of file OgreRoot.h.
set<FrameListener*>::type Ogre::Root::mRemovedFrameListeners [protected] |
Set of frame listeners marked for removal.
Definition at line 179 of file OgreRoot.h.
bool Ogre::Root::mRemoveQueueStructuresOnClear [protected] |
Definition at line 116 of file OgreRoot.h.
RenderSystemList Ogre::Root::mRenderers [protected] |
Definition at line 73 of file OgreRoot.h.
Definition at line 104 of file OgreRoot.h.
Definition at line 102 of file OgreRoot.h.
ResourceGroupManager* Ogre::Root::mResourceGroupManager [protected] |
Definition at line 101 of file OgreRoot.h.
MovableObjectFactory* Ogre::Root::mRibbonTrailFactory [protected] |
Definition at line 137 of file OgreRoot.h.
Definition at line 140 of file OgreRoot.h.
SceneManagerEnumerator* Ogre::Root::mSceneManagerEnum [protected] |
Definition at line 84 of file OgreRoot.h.
SceneManagerStack Ogre::Root::mSceneManagerStack [protected] |
Definition at line 86 of file OgreRoot.h.
ShadowTextureManager* Ogre::Root::mShadowTextureManager [protected] |
Definition at line 103 of file OgreRoot.h.
SkeletonManager* Ogre::Root::mSkeletonManager [protected] |
Definition at line 92 of file OgreRoot.h.
Root * Ogre::Singleton< Root >::msSingleton [static, protected, inherited] |
Definition at line 75 of file OgreSingleton.h.
OverlayElementFactory* Ogre::Root::mTextAreaFactory [protected] |
Definition at line 95 of file OgreRoot.h.
Timer* Ogre::Root::mTimer [protected] |
Definition at line 108 of file OgreRoot.h.
String Ogre::Root::mVersion [protected] |
Definition at line 75 of file OgreRoot.h.
WorkQueue* Ogre::Root::mWorkQueue [protected] |
Definition at line 145 of file OgreRoot.h.
ArchiveFactory* Ogre::Root::mZipArchiveFactory [protected] |
Definition at line 98 of file OgreRoot.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:39:38 2012