The interface of the IDrawObject engine. The IDrawObjectEngine maintains a database of IDrawObjects that have been provided by the loaded RuleSets. Whenever a new IGameObject is created by an IRule, the IDrawObjectEngine is called via CreateDrawObject, to create an IDrawObject for the new IGameObject so that it can be drawn on screen. IDrawObjectEngine also has two functions, ObtainAll and ReleaseAll, that allow all stored IDrawObjects in the database to do their own resource acquisition and release. These functions must be called exactly once per Cities3D game. The IDrawObjectEngine is accessible through the GameEngine.
IDrawObjectEngine.h
The interface of the IDrawObject engine. | |
Creates a new IDrawObject capable of drawing the given IGameObject. | |
Lets all IDrawObjects obtain needed resources. | |
Lets all IDrawObjects release acquired resources. | |
The IDrawObjectEngine destructor. |
Creates a new IDrawObject capable of drawing the given IGameObject. | |
Lets all IDrawObjects obtain needed resources. | |
Lets all IDrawObjects release acquired resources. |
|
Creates a new IDrawObject capable of drawing the given IGameObject.
| object | The IGameObject for which an IDrawObject is needed. |
A newly cloned IDrawObject that can draw the IGameObject. May be NULL if no capable IDrawObject was found.
| virtual void ObtainAll()=0 |
Lets all IDrawObjects obtain needed resources.
| virtual void ReleaseAll()=0 |
Lets all IDrawObjects release acquired resources.
|
| virtual void ObtainAll()=0 |
| virtual void ReleaseAll()=0 |
| virtual ~IDrawObjectEngine()=0 |