This class is a callback passed in to the renderer.
The system passes this callback to the renderer, and the renderer will use these methods whenever it is doing something that is going to take some time. For instance when transforming objects it can update the progress bar. This is also passed in to the shadow buffer code so the shadow buffer can show its progress. All methods of this class are implemented by the system. They are called by a plug-in renderer.
#include <render.h>
Public Member Functions |
|
virtual | ~RendProgressCallback () |
Destructor. |
|
virtual void | SetTitle (const MCHAR *title)=0 |
Allows the plug-in to set the string
displayed in renderer dialog. |
|
virtual int | Progress (int done, int total)=0 |
Allows the plug-in to update the renderer
progress display. |
|
virtual void | SetCurField (int which) |
Sets the field number display. |
|
virtual void | SetSceneStats (int nlights, int nrayTraced, int nshadowed, int nobj, int nfaces) |
The plug-in renderer should call this on
every frame, passing in values for the various parameters. |
virtual ~RendProgressCallback | ( | ) | [inline, virtual] |
Destructor.
{ }
virtual void SetTitle | ( | const MCHAR * | title | ) | [pure virtual] |
Allows the plug-in to set the string displayed in renderer dialog.
virtual int Progress | ( | int | done, |
int | total | ||
) | [pure virtual] |
Allows the plug-in to update the renderer progress display.
virtual void SetCurField | ( | int | which | ) | [inline, virtual] |
Sets the field number display.
{}
virtual void SetSceneStats | ( | int | nlights, |
int | nrayTraced, | ||
int | nshadowed, | ||
int | nobj, | ||
int | nfaces | ||
) | [inline, virtual] |
The plug-in renderer should call this on every frame, passing in values for the various parameters.
These are displayed in the rendering in progress dialog.
{}