Public Member Functions

RendProgressCallback Class Reference

Search for all occurrences

Detailed Description

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.

See also:
Class Renderer.

#include <render.h>

Inheritance diagram for RendProgressCallback:
Inheritance graph
[legend]

List of all members.

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.

Constructor & Destructor Documentation

virtual ~RendProgressCallback ( ) [inline, virtual]

Destructor.

{ }

Member Function Documentation

virtual void SetTitle ( const MCHAR *  title ) [pure virtual]

Allows the plug-in to set the string displayed in renderer dialog.

Parameters:
const MCHAR *title

The string to display.
virtual int Progress ( int  done,
int  total 
) [pure virtual]

Allows the plug-in to update the renderer progress display.

Parameters:
int done

The number of items completed so far.

int total

The total number of items to process.
Returns:
RENDPROG_CONTINUE

Continue to process.

RENDPROG_ABORT

Stop processing.
virtual void SetCurField ( int  which ) [inline, virtual]

Sets the field number display.

Parameters:
int which

FIELD_FIRST

FIELD_SECOND

FIELD_NONE
{}
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.

Parameters:
int nlights

The total number of lights.

int nrayTraced

The number of lights using raytraced shadows.

int nshadowed

The number of lights using shadows.

int nobj

The total number of objects.

int nfaces

The total number of faces.
{}

RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback
RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback RendProgressCallback