Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Emma::IRenderManager Class Reference

#include <EmmaIRenderManager.h>

Inheritance diagram for Emma::IRenderManager:

Emma::RenderManager List of all members.

Public Member Functions

virtual IScenecreateRootScene (IInstance *, IWindow *)=0
 This creates the root scene given an IInstance and an IWindow in which to render.
virtual Fusion::ResultType processEvent (IInstance *, const Event &)=0
 this is used to pass system events to the render manager
virtual Fusion::ResultType setProperty (const Fusion::Id &, const Fusion::Value &)=0
 this sets a global property on the render manager
virtual Fusion::ResultType render (IInstance *)=0
 this renders one frame by calling ogre
virtual IRenderableGroupgetRootRenderableGroup ()=0
 each scene has a root renderablegroup that corresponds to a scene node all other scene nodes are inserted under this node
virtual IRenderablecreateRenderable (IInstance *, Fusion::IObject *, RenderableType, IRenderable *p=NULL)=0
 This creates a renderable object for each Emma object that needs to be rendered in Ogre.
virtual IScenecreateRenderToTexture (IInstance *, Fusion::IObject *, IRenderableGroup *, Fusion::UTF8String &)=0
 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 ()=0
 set the current resource group name to the resource group of this render manager
virtual Fusion::UTF8String getResourceGroupName ()=0
 each render manager creates its own resource group name
virtual void saveScreenshotToFile (Fusion::UTF8String name)=0
 saves a screenshot of the current scene to a file
virtual void lock ()=0
 makes sure only one-thread is using the render manager at any given instant
virtual void unlock ()=0
 releases the lock.
virtual void setLatestResourcePath (const Fusion::UTF8String &)=0
 register a string value to remember later
virtual const Fusion::UTF8StringgetLatestResourcePath ()=0
 get the latest registered string value
virtual void * getMeshInfo (Fusion::UTF8String)=0
 load the passed mesh file and return the pointer to the mesh structure
virtual RendererType getRendererType () const =0
 Return the RendererType.

Member Function Documentation

virtual IRenderable* Emma::IRenderManager::createRenderable IInstance ,
Fusion::IObject ,
RenderableType  ,
IRenderable p = NULL
[pure virtual]
 

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.

Implemented in Emma::RenderManager.

virtual IScene* Emma::IRenderManager::createRenderToTexture IInstance ,
Fusion::IObject ,
IRenderableGroup ,
Fusion::UTF8String
[pure virtual]
 

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.

Implemented in Emma::RenderManager.

virtual IScene* Emma::IRenderManager::createRootScene IInstance ,
IWindow
[pure virtual]
 

This creates the root scene given an IInstance and an IWindow in which to render.

Returns new IScene or NULL on failure.

Implemented in Emma::RenderManager.

virtual const Fusion::UTF8String& Emma::IRenderManager::getLatestResourcePath  )  [pure virtual]
 

get the latest registered string value

Implemented in Emma::RenderManager.

virtual void* Emma::IRenderManager::getMeshInfo Fusion::UTF8String   )  [pure virtual]
 

load the passed mesh file and return the pointer to the mesh structure

Implemented in Emma::RenderManager.

virtual RendererType Emma::IRenderManager::getRendererType  )  const [pure virtual]
 

Return the RendererType.

Implemented in Emma::RenderManager.

virtual Fusion::UTF8String Emma::IRenderManager::getResourceGroupName  )  [pure virtual]
 

each render manager creates its own resource group name

Implemented in Emma::RenderManager.

virtual IRenderableGroup* Emma::IRenderManager::getRootRenderableGroup  )  [pure virtual]
 

each scene has a root renderablegroup that corresponds to a scene node all other scene nodes are inserted under this node

Implemented in Emma::RenderManager.

virtual void Emma::IRenderManager::lock  )  [pure virtual]
 

makes sure only one-thread is using the render manager at any given instant

Implemented in Emma::RenderManager.

virtual Fusion::ResultType Emma::IRenderManager::processEvent IInstance ,
const Event
[pure virtual]
 

this is used to pass system events to the render manager

Implemented in Emma::RenderManager.

virtual Fusion::ResultType Emma::IRenderManager::render IInstance  )  [pure virtual]
 

this renders one frame by calling ogre

Implemented in Emma::RenderManager.

virtual void Emma::IRenderManager::saveScreenshotToFile Fusion::UTF8String  name  )  [pure virtual]
 

saves a screenshot of the current scene to a file

Implemented in Emma::RenderManager.

virtual void Emma::IRenderManager::setLatestResourcePath const Fusion::UTF8String  )  [pure virtual]
 

register a string value to remember later

Implemented in Emma::RenderManager.

virtual Fusion::ResultType Emma::IRenderManager::setProperty const Fusion::Id ,
const Fusion::Value
[pure virtual]
 

this sets a global property on the render manager

Implemented in Emma::RenderManager.

virtual void Emma::IRenderManager::setResourceGroupActive  )  [pure virtual]
 

set the current resource group name to the resource group of this render manager

Implemented in Emma::RenderManager.

virtual void Emma::IRenderManager::unlock  )  [pure virtual]
 

releases the lock.

when

Implemented in Emma::RenderManager.


The documentation for this class was generated from the following file:
Generated on Sat Apr 1 06:08:22 2006 for Emma SDK Guide by  doxygen 1.4.3