41 #if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID
102 #if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID
225 const String& configFileName =
"ogre.cfg",
226 const String& logFileName =
"Ogre.log");
602 bool recursive =
false);
1005 bool overrideExisting =
false);
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.
Concrete IteratorWrapper for const access to the underlying key-value container.
Concrete IteratorWrapper for const access to the underlying container.
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.
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
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...
static String DEFAULT_RESOURCE_GROUP_NAME
Default resource group name.
The root class of the Ogre system.
LodStrategyManager * mLodStrategyManager
bool _fireFrameEnded(FrameEvent &evt)
Method for raising frame ended events.
static Root * getSingletonPtr(void)
Override standard Singleton retrieval.
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.
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.
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.
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...
void addMovableObjectFactory(MovableObjectFactory *fact, bool overrideExisting=false)
Register a new MovableObjectFactory which will create new MovableObject instances of a particular typ...
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
MeshManager * getMeshManager(void)
Retrieves a reference to the current MeshManager.
uint32 _allocateNextMovableObjectTypeFlag(void)
Allocate the next MovableObject type flag.
ArchiveManager * mArchiveManager
ShadowTextureManager * mShadowTextureManager
SceneManager * createSceneManager(const String &typeName, const String &instanceName=StringUtil::BLANK)
Create a SceneManager instance of a given type.
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
const RenderSystemList & getAvailableRenderers(void)
Retrieve a list of the available render systems.
map< String, RenderQueueInvocationSequence * >::type RenderQueueInvocationSequenceMap
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
Timer * getTimer(void)
Gets a pointer to the central timer used for all OGRE timings.
ExternalTextureSourceManager * mExternalTextureSourceManager
RenderWindow * createRenderWindow(const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)
Creates a new rendering window.
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.
TextureManager * getTextureManager(void)
Retrieves a reference to the current TextureManager.
map< String, MovableObjectFactory * >::type MovableObjectFactoryMap
const PluginInstanceList & getInstalledPlugins() const
Gets a read-only list of the currently installed plugins.
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...
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
static Root & getSingleton(void)
Override standard Singleton retrieval.
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...
RenderQueueInvocationSequence * createRenderQueueInvocationSequence(const String &name)
Create a new RenderQueueInvocationSequence, useful for linking to Viewport instances to perform custo...
bool renderOneFrame(Real timeSinceLastFrame)
Render one frame, with custom frame time information.
PluginLibList mPluginLibs
List of plugin DLLs loaded.
RenderTarget * getRenderTarget(const String &name)
Retrieves a pointer to a named render target.
CompositorManager * mCompositorManager
void destroySceneManager(SceneManager *sm)
Destroy an instance of a SceneManager.
RenderWindow * getAutoCreatedWindow(void)
Retrieves a pointer to the window that was created automatically.
bool restoreConfig(void)
Checks for saved video/sound/etc settings.
const SceneManagerMetaData * getSceneManagerMetaData(const String &typeName) const
Get more information about a given type of SceneManager.
SceneManagerStack mSceneManagerStack
SceneManager * _getCurrentSceneManager(void) const
Returns the scene manager currently being used to render a frame.
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.
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.
SceneManager * getSceneManager(const String &instanceName) const
Get an existing SceneManager instance that has already been created, identified by the instance name.
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
RenderTarget * detachRenderTarget(RenderTarget *pWin)
Detaches a RenderTarget from the active render system and returns a pointer to it.
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.
WorkQueue * getWorkQueue() const
Get the WorkQueue for processing background tasks.
MovableObjectFactory * mManualObjectFactory
SceneManager * createSceneManager(SceneTypeMask typeMask, const String &instanceName=StringUtil::BLANK)
Create a SceneManager instance based on scene type support.
bool mIsInitialised
Are we initialised yet?
RenderQueueInvocationSequenceMap mRQSequenceMap
deque< unsigned long >::type EventTimesQueue
Contains the times of recently fired events.
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.
MovableObjectFactory * getMovableObjectFactory(const String &typeName)
Get a MovableObjectFactory for the given type.
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 _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
RenderQueueInvocationSequence * getRenderQueueInvocationSequence(const String &name)
Get a RenderQueueInvocationSequence.
MeshManager * mMeshManager
RenderSystem * mActiveRenderer
ControllerManager * mControllerManager
void destroyRenderTarget(const String &name)
Destroys the given named RenderTarget.
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.
void destroyAllRenderQueueInvocationSequences(void)
Destroy all RenderQueueInvocationSequences.
bool mFirstTimePostWindowInit
In case multiple render windows are created, only once are the resources loaded.
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.
RenderSystem * getRenderSystemByName(const String &name)
Retrieve a pointer to the render system by the given name.
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.
DynLibManager * mDynLibManager
MovableObjectFactory * mBillboardChainFactory
bool renderOneFrame(void)
Render one frame.
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.
void loadPlugin(const String &pluginName)
Manually load a Plugin contained in a DLL / DSO.
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.
void setWorkQueue(WorkQueue *queue)
Replace the current work queue with an alternative.
void removeSceneManagerFactory(SceneManagerFactory *fact)
Unregister a SceneManagerFactory.
RenderTarget * detachRenderTarget(const String &name)
Detaches a named RenderTarget from the active render system and returns a pointer to it.
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...
Template class for creating single-instance global classes.
Handles the management of skeleton resources.
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
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
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
uint16 SceneTypeMask
Bitmask containing scene types.
float Real
Software floating point type.
Struct containing information about a frame event.