41#if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID
102#if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID
601 const String& groupName = ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
602 bool recursive =
false);
611 const String& groupName = ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Abstract factory class, archive codec plugins can register concrete subclasses of this.
This class manages the available ArchiveFactory plugins.
Class representing colour.
Class for managing Compositor settings for Ogre.
Class for managing Controller instances.
Manager for Dynamic-loading Libraries.
Singleton Class which handles the registering and control of texture plugins.
A interface class defining a listener which can be used to receive notifications of frame events.
This ResourceManager manages high-level vertex and fragment programs.
Manager for LOD strategies.
The log manager handles the creation and retrieval of logs for the application.
Class for managing Material settings for Ogre.
Handles the management of mesh resources.
Interface definition for a factory class which produces a certain kind of MovableObject,...
Injects the output of a request to the mesh in a thread safe way.
Manages particle systems, particle system scripts (templates) and the available emitter & affector fa...
Class defining a generic OGRE plugin.
The profiler allows you to measure the performance of your code.
Class to hold a linear sequence of RenderQueueInvocation objects.
Class for managing RenderSystemCapabilities database for Ogre.
singleton class for storing the capabilities of the graphics card.
Defines the functionality of a 3D API.
A 'canvas' which can receive the results of a rendering operation.
Manages the target rendering window.
This class is used to perform Resource operations in a background thread.
This singleton class manages the list of resource groups, and notifying the various resource managers...
The root class of the Ogre system.
LodStrategyManager * mLodStrategyManager
MeshManager * getMeshManager(void)
Retrieves a reference to the current MeshManager.
bool _fireFrameEnded(FrameEvent &evt)
Method for raising frame ended events.
bool isBlendIndicesGpuRedundant() const
Returns whether blend indices information needs to be passed to the GPU see setBlendIndicesGpuRedunda...
ResourceGroupManager * mResourceGroupManager
void useCustomRenderSystemCapabilities(RenderSystemCapabilities *capabilities)
Requests active RenderSystem to use custom RenderSystemCapabilities.
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 shutdownPlugins()
Shuts down all loaded plugins - allows things to be tidied up whilst all plugins are still loaded.
RenderQueueInvocationSequence * createRenderQueueInvocationSequence(const String &name)
Create a new RenderQueueInvocationSequence, useful for linking to Viewport instances to perform custo...
bool isInitialised(void) const
Returns whether the system is initialised or not.
void _pushCurrentSceneManager(SceneManager *sm)
Pushes the scene manager currently being used to render.
unsigned int getDisplayMonitorCount() const
Gets the number of display monitors.
bool _fireFrameRenderingQueued()
Method for raising frame rendering queued events.
void _popCurrentSceneManager(SceneManager *sm)
Pops the scene manager currently being used to render.
void initialisePlugins()
Initialise all loaded plugins - allows plugins to perform actions once the renderer is initialised.
MovableObjectFactoryIterator getMovableObjectFactoryIterator(void) const
Return an iterator over all the MovableObjectFactory instances currently registered.
bool _fireFrameStarted(FrameEvent &evt)
Method for raising frame started events.
RenderTarget * getRenderTarget(const String &name)
Retrieves a pointer to a named render target.
SceneManagerEnumerator * mSceneManagerEnum
ArchiveFactory * mEmbeddedZipArchiveFactory
void setFrameSmoothingPeriod(Real period)
Sets the period over which OGRE smooths out fluctuations in frame times.
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.
RenderTarget * detachRenderTarget(RenderTarget *pWin)
Detaches a RenderTarget from the active render system and returns a pointer to it.
RenderSystem * getRenderSystemByName(const String &name)
Retrieve a pointer to the render system by the given name.
MovableObjectFactory * mLightFactory
void uninstallPlugin(Plugin *plugin)
Uninstall an existing plugin.
void _syncAddedRemovedFrameListeners()
bool _fireFrameRenderingQueued(FrameEvent &evt)
Method for raising frame rendering queued events.
bool _updateAllRenderTargets(void)
Internal method used for updating all RenderTarget objects (windows, renderable textures etc) which a...
deque< unsignedlong >::type EventTimesQueue
Contains the times of recently fired events.
void addMovableObjectFactory(MovableObjectFactory *fact, bool overrideExisting=false)
Register a new MovableObjectFactory which will create new MovableObject instances of a particular typ...
static Root & getSingleton(void)
Override standard Singleton retrieval.
set< FrameListener * >::type mRemovedFrameListeners
Set of frame listeners marked for removal and addition.
void clearEventTimes(void)
Clears the history of all event times.
ResourceBackgroundQueue * mResourceBackgroundQueue
SceneManager * _getCurrentSceneManager(void) const
Returns the scene manager currently being used to render a frame.
const PluginInstanceList & getInstalledPlugins() const
Gets a read-only list of the currently installed plugins.
uint32 _allocateNextMovableObjectTypeFlag(void)
Allocate the next MovableObject type flag.
ArchiveManager * mArchiveManager
ShadowTextureManager * mShadowTextureManager
void removeResourceLocation(const String &name, const String &groupName=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME)
Removes a resource location from the list.
ScriptCompilerManager * mCompilerManager
bool showConfigDialog(void)
Displays a dialog asking the user to choose system settings.
SkeletonManager * mSkeletonManager
RenderSystemList mRenderers
ArchiveFactory * mFileSystemArchiveFactory
void oneTimePostWindowInit(void)
Internal method for one-time tasks after first window creation.
void destroyRenderQueueInvocationSequence(const String &name)
Destroy a RenderQueueInvocationSequence.
ArchiveFactory * mZipArchiveFactory
Real mDefaultMinPixelSize
vector< DynLib * >::type PluginLibList
TextureManager * getTextureManager(void)
Retrieves a reference to the current TextureManager.
ExternalTextureSourceManager * mExternalTextureSourceManager
void addSceneManagerFactory(SceneManagerFactory *fact)
Register a new SceneManagerFactory, a factory object for creating instances of specific SceneManagers...
vector< Plugin * >::type PluginInstanceList
bool endRenderingQueued(void)
Check for planned end of rendering.
bool _fireFrameEnded()
Method for raising frame ended events.
Real calculateEventTime(unsigned long now, FrameEventTimeType type)
Internal method for calculating the average time between recently fired events.
void convertColourValue(const ColourValue &colour, uint32 *pDest)
Generates a packed data version of the passed in ColourValue suitable for use with the current Render...
const RenderSystemList & getAvailableRenderers(void)
Retrieve a list of the available render systems.
map< String, MovableObjectFactory * >::type MovableObjectFactoryMap
void removeMovableObjectFactory(MovableObjectFactory *fact)
Removes a previously registered MovableObjectFactory.
void installPlugin(Plugin *plugin)
Install a new plugin.
uint32 mNextMovableObjectTypeFlag
set< FrameListener * >::type mFrameListeners
Set of registered frame listeners.
HighLevelGpuProgramManager * mHighLevelGpuProgramManager
FrameEventTimeType
Indicates the type of event to be considered by calculateEventTime().
String getErrorDescription(long errorNumber)
Utility function for getting a better description of an error code.
RenderWindow * mAutoWindow
deque< SceneManager * >::type SceneManagerStack
ConstMapIterator< MovableObjectFactoryMap > MovableObjectFactoryIterator
RenderSystemCapabilitiesManager * mRenderSystemCapabilitiesManager
bool getRemoveRenderQueueStructuresOnClear() const
Get whether the entire render queue structure should be emptied on clearing, or whether just the obje...
bool renderOneFrame(Real timeSinceLastFrame)
Render one frame, with custom frame time information.
PluginLibList mPluginLibs
List of plugin DLLs loaded.
CompositorManager * mCompositorManager
void destroySceneManager(SceneManager *sm)
Destroy an instance of a SceneManager.
bool restoreConfig(void)
Checks for saved video/sound/etc settings.
SceneManagerStack mSceneManagerStack
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.
Root(const String &pluginFileName="plugins" OGRE_BUILD_SUFFIX ".cfg", const String &configFileName="ogre.cfg", const String &logFileName="Ogre.log")
Constructor.
RenderWindow * createRenderWindow(const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)
Creates a new rendering window.
RenderSystem * getRenderSystem(void)
Retrieve a pointer to the currently selected render system.
void startRendering(void)
Starts / restarts the automatic rendering cycle.
bool hasMovableObjectFactory(const String &typeName) const
Checks whether a factory is registered for a given MovableObject type.
void destroyRenderTarget(RenderTarget *target)
Destroys the given RenderTarget.
ParticleSystemManager * mParticleManager
void setBlendIndicesGpuRedundant(bool redundant)
Sets whether blend indices information needs to be passed to the GPU.
void unloadPlugin(const String &pluginName)
Manually unloads a Plugin contained in a DLL / DSO.
unsigned long getNextFrameNumber(void) const
Gets the number of the next frame to be rendered.
MovableObjectFactory * mEntityFactory
void setDefaultMinPixelSize(Real pixelSize)
Set the default minimum pixel size for object to be rendered by.
void loadPlugins(const String &pluginsfile="plugins" OGRE_BUILD_SUFFIX ".cfg")
Method reads a plugins configuration file and instantiates all plugins.
MovableObjectFactoryMap mMovableObjectFactoryMap
bool mIsBlendWeightsGpuRedundant
Tells whether blend weights information needs to be passed to the GPU.
map< String, RenderQueueInvocationSequence * >::type RenderQueueInvocationSequenceMap
MovableObjectFactory * mManualObjectFactory
bool mIsInitialised
Are we initialised yet?
SceneManager * getSceneManager(const String &instanceName) const
Get an existing SceneManager instance that has already been created, identified by the instance name.
RenderQueueInvocationSequenceMap mRQSequenceMap
PluginInstanceList mPlugins
List of Plugin instances registered.
MovableObjectFactory * mRibbonTrailFactory
bool isBlendWeightsGpuRedundant() const
Returns whether blend weights information needs to be passed to the GPU see setBlendWeightsGpuRedunda...
Real getDefaultMinPixelSize()
Get the default minimum pixel size for object to be rendered by.
void setBlendWeightsGpuRedundant(bool redundant)
Sets whether blend weights information needs to be passed to the GPU.
bool _updateAllRenderTargets(FrameEvent &evt)
Internal method used for updating all RenderTarget objects (windows, renderable textures etc) which a...
void removeFrameListener(FrameListener *oldListener)
Removes a FrameListener from the list of listening classes.
void unloadPlugins()
Unloads all loaded plugins.
Real getFrameSmoothingPeriod(void) const
Gets the period over which OGRE smooths out fluctuations in frame times.
MovableObjectFactory * mBillboardSetFactory
set< FrameListener * >::type mAddedFrameListeners
MeshManager * mMeshManager
RenderSystem * mActiveRenderer
ControllerManager * mControllerManager
void destroyRenderTarget(const String &name)
Destroys the given named RenderTarget.
RenderTarget * detachRenderTarget(const String &name)
Detaches a named RenderTarget from the active render system and returns a pointer to it.
void setRemoveRenderQueueStructuresOnClear(bool r)
Set whether the entire render queue structure should be emptied on clearing, or whether just the obje...
MaterialManager * mMaterialManager
void queueEndRendering(bool state=true)
Queues the end of rendering.
Timer * getTimer(void)
Gets a pointer to the central timer used for all OGRE timings.
void destroyAllRenderQueueInvocationSequences(void)
Destroy all RenderQueueInvocationSequences.
bool mFirstTimePostWindowInit
In case multiple render windows are created, only once are the resources loaded.
static Root * getSingletonPtr(void)
Override standard Singleton retrieval.
SceneManagerEnumerator::MetaDataIterator getSceneManagerMetaDataIterator(void) const
Iterate over all types of SceneManager available for construction, providing some information about e...
SceneManagerEnumerator::SceneManagerIterator getSceneManagerIterator(void)
Get an iterator over all the existing SceneManager instances.
RenderQueueInvocationSequence * getRenderQueueInvocationSequence(const String &name)
Get a RenderQueueInvocationSequence.
void shutdown(void)
Shuts down the system manually.
void saveConfig(void)
Saves the details of the current configuration.
bool hasSceneManager(const String &instanceName) const
Determines if a given SceneManager already exists.
void addRenderSystem(RenderSystem *newRend)
Adds a new rendering subsystem to the list of available renderers.
const SceneManagerMetaData * getSceneManagerMetaData(const String &typeName) const
Get more information about a given type of SceneManager.
DynLibManager * mDynLibManager
MovableObjectFactory * mBillboardChainFactory
WorkQueue * getWorkQueue() const
Get the WorkQueue for processing background tasks.
bool renderOneFrame(void)
Render one frame.
MovableObjectFactory * getMovableObjectFactory(const String &typeName)
Get a MovableObjectFactory for the given type.
void addFrameListener(FrameListener *newListener)
Registers a FrameListener which will be called back every frame.
bool createRenderWindows(const RenderWindowDescriptionList &renderWindowDescriptions, RenderWindowList &createdWindows)
Creates multiple rendering windows.
RenderWindow * initialise(bool autoCreateWindow, const String &windowTitle="OGRE Render Window", const String &customCapabilitiesConfig=StringUtil::BLANK)
Initialises the renderer.
void loadPlugin(const String &pluginName)
Manually load a Plugin contained in a DLL / DSO.
RenderWindow * getAutoCreatedWindow(void)
Retrieves a pointer to the window that was created automatically.
bool mRemoveQueueStructuresOnClear
void populateFrameEvent(FrameEventTimeType type, FrameEvent &evtToUpdate)
Update a set of event times (note, progressive, only call once for each type per frame)
bool _fireFrameStarted()
Method for raising frame started events.
void setRenderSystem(RenderSystem *system)
Sets the rendering subsystem to be used.
bool mIsBlendIndicesGpuRedundant
Tells whether blend indices information needs to be passed to the GPU.
SceneManager * createSceneManager(SceneTypeMask typeMask, const String &instanceName=StringUtil::BLANK)
Create a SceneManager instance based on scene type support.
SceneManager * createSceneManager(const String &typeName, const String &instanceName=StringUtil::BLANK)
Create a SceneManager instance of a given type.
void setWorkQueue(WorkQueue *queue)
Replace the current work queue with an alternative.
void removeSceneManagerFactory(SceneManagerFactory *fact)
Unregister a SceneManagerFactory.
Enumerates the SceneManager classes available to applications.
Class which will create instances of a given SceneManager.
Manages the organisation and rendering of a 'scene' i.e.
Manages threaded compilation of scripts.
Class to manage the available shadow textures which may be shared between many SceneManager instances...
Reference-counted shared pointer, used for objects where implicit destruction is required.
Template class for creating single-instance global classes.
Handles the management of skeleton resources.
Class for loading & managing textures.
Interface to a general purpose request / response style background work queue.
vector< RenderWindow * >::type RenderWindowList
Render window container.
vector< RenderWindowDescription >::type RenderWindowDescriptionList
Render window creation parameters container.
vector< RenderSystem * >::type RenderSystemList
Struct containing information about a frame event.
std::map< K, V, P, A > type