Class hierarchy Compound list File list Compound Members
World2D Class Reference
An infinite 2D World. More...
List of all members.
Public Members
- World2D ()
- Construct a 2D World.
- ~World2D ()
- Destruct a 2D World.
- virtual long preRender ()
- This method is called once before any rendering is done.
- virtual long preObjectRender (Object* O)
- This method is called once per object before it is rendered.
- virtual long postRender ()
- This method is called once after all rendering is done.
- virtual long postObjectRender (Object* O)
- This method is called once per object after it is rendered.
- virtual long postAdvance (float Fraction)
- This method is called once after any object is advanced.
- virtual long postObjectAdvance (Object* O, float Fraction)
- This method is called once per object after it is advanced.
- View2D& getActiveView ()
- Returns the current active view.
- long status () const
- Returns the status of the object.
Detailed Description
An infinite 2D World.
Can contain a hierarchy of 2D objects,
and has a view to reflect a certain part of it.
Member Function Documentation
World2D::World2D()
World2D::~World2D()
virtual long World2D::preRender() [virtual]
This method is called once before any rendering is done.
virtual long World2D::preObjectRender(Object* O) [virtual]
This method is called once per object before it is rendered.
If it returns a non-zero value, the object will not be rendered.
virtual long World2D::postRender() [virtual]
This method is called once after all rendering is done.
virtual long World2D::postObjectRender(Object* O) [virtual]
This method is called once per object after it is rendered.
virtual long World2D::postAdvance(float Fraction) [virtual]
This method is called once after any object is advanced.
virtual long World2D::postObjectAdvance(Object* O, float Fraction) [virtual]
This method is called once per object after it is advanced.
View2D& World2D::getActiveView()
Returns the current active view.
Currently there can be only one view.
The default view renders to the screen and covers the entire screen.
long World2D::status() const
Returns the status of the object.
A non-zero value indicates an error.
The documentation for this class was generated from the following file: