#include <EmmaRenderManager.h>
Inheritance diagram for Emma::RenderManager:

Public Member Functions | |
| RenderManager () | |
| DECLARE_CLASS (RenderManager, Object) | |
| virtual Fusion::ResultType | initialize () |
| Initialize this instance. | |
| virtual Fusion::ResultType | finalize () |
| Finalize this instance before it is destroyed. | |
| virtual IScene * | createRootScene (IInstance *, IWindow *) |
| This creates the root scene given an IInstance and an IWindow in which to render. | |
| virtual Fusion::ResultType | processEvent (IInstance *, const Event &) |
| this is used to pass system events to the render manager | |
| virtual Fusion::ResultType | setProperty (const Fusion::Id &, const Fusion::Value &) |
| this sets a global property on the render manager | |
| virtual Fusion::ResultType | render (IInstance *) |
| This method calls renderOneFrame in Ogre. | |
| virtual IRenderableGroup * | getRootRenderableGroup () |
| each scene has a root renderablegroup that corresponds to a scene node all other scene nodes are inserted under this node | |
| virtual IRenderable * | createRenderable (IInstance *, Fusion::IObject *, RenderableType, IRenderable *b=NULL) |
| This creates a renderable object for each Emma object that needs to be rendered in Ogre. | |
| virtual IScene * | createRenderToTexture (IInstance *, Fusion::IObject *, IRenderableGroup *, Fusion::UTF8String &) |
| This creates a new render target which is a render to texture return value is the index of the ogre instance scene surface object note that each render manager can have multiple ogre instance scene surface objects. | |
| virtual void | setResourceGroupActive () |
| set the current resource group name to the resource group of this render manager | |
| virtual Fusion::UTF8String | getResourceGroupName () |
| each render manager creates its own resource group name | |
| virtual void | saveScreenshotToFile (Fusion::UTF8String name) |
| saves a screenshot of the current scene to a file | |
| virtual void | setLatestResourcePath (const Fusion::UTF8String &s) |
| register a string value to remember later | |
| virtual const Fusion::UTF8String & | getLatestResourcePath () |
| get the latest registered string value | |
| virtual void * | getMeshInfo (Fusion::UTF8String) |
| load the passed mesh file and return the pointer to the mesh structure | |
| virtual bool | handleEvent (const Event &event) |
| Callback function that is implemented by the callee. | |
| OgreApplication * | getOgreApp () |
| OgreInstance * | getOgreInstance () |
| virtual void | lock () |
| makes sure only one-thread is using the render manager at any given instant | |
| virtual void | unlock () |
| releases the lock. | |
| void | setPickable (bool v) |
| virtual RendererType | getRendererType () const |
| Return the RendererType. | |
Protected Member Functions | |
| virtual | ~RenderManager () |
|
|
|
|
|
|
|
||||||||||||||||||||
|
This creates a renderable object for each Emma object that needs to be rendered in Ogre. This method asks the IObject interface about the properties of the Emma object and creates a corresponding Emma Renderable object. If this object directly correponds to an Ogre mesh, it loads the mesh. Implements Emma::IRenderManager. |
|
||||||||||||||||||||
|
This creates a new render target which is a render to texture return value is the index of the ogre instance scene surface object note that each render manager can have multiple ogre instance scene surface objects.
Implements Emma::IRenderManager. |
|
||||||||||||
|
This creates the root scene given an IInstance and an IWindow in which to render. Returns new IScene or NULL on failure. Implements Emma::IRenderManager. |
|
||||||||||||
|
|
|
|
Finalize this instance before it is destroyed.
Reimplemented from Fusion::Object. |
|
|
get the latest registered string value
Implements Emma::IRenderManager. |
|
|
load the passed mesh file and return the pointer to the mesh structure
Implements Emma::IRenderManager. |
|
|
|
|
|
|
|
|
Return the RendererType.
Implements Emma::IRenderManager. |
|
|
each render manager creates its own resource group name
Implements Emma::IRenderManager. |
|
|
each scene has a root renderablegroup that corresponds to a scene node all other scene nodes are inserted under this node
Implements Emma::IRenderManager. |
|
|
Callback function that is implemented by the callee.
Implements Emma::EventHandler. |
|
|
Initialize this instance.
Reimplemented from Fusion::Object. |
|
|
makes sure only one-thread is using the render manager at any given instant
Implements Emma::IRenderManager. |
|
||||||||||||
|
this is used to pass system events to the render manager
Implements Emma::IRenderManager. |
|
|
This method calls renderOneFrame in Ogre.
Implements Emma::IRenderManager. |
|
|
saves a screenshot of the current scene to a file
Implements Emma::IRenderManager. |
|
|
register a string value to remember later
Implements Emma::IRenderManager. |
|
|
|
|
||||||||||||
|
this sets a global property on the render manager
Implements Emma::IRenderManager. |
|
|
set the current resource group name to the resource group of this render manager
Implements Emma::IRenderManager. |
|
|
releases the lock. when Implements Emma::IRenderManager. |
1.4.3