Public Member Functions

RendContext Class Reference

Search for all occurrences

Detailed Description

This class is passed into the method ObjLightDesc::Update().

The methods of this class are implemented by the 3ds Max scanline renderer. Developer creating other renderer plug-ins may choose to implement the methods of this class if they wish to use the same architecture. Developers who wish to take advantage of the 3ds Max volumetric light effects should implement the methods of this class. The volumetric lights are set up to work with this mechanism.

See also:
Class ObjLightDesc.

#include <render.h>

Inheritance diagram for RendContext:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~RendContext ()
  Destructor.
virtual int  Progress (int done, int total) const
  This method is used to update the progress bar and check the keyboard and mouse for user cancellation.
virtual Color  GlobalLightLevel () const =0
  This is a multiplier that scales the brightness of all scene lights.

Constructor & Destructor Documentation

virtual ~RendContext ( ) [inline, virtual]

Destructor.

{}

Member Function Documentation

virtual int Progress ( int  done,
int  total 
) const [inline, virtual]

This method is used to update the progress bar and check the keyboard and mouse for user cancellation.

A plug-in renderer should override this method by calling the RendProgressCallback::Progress() method on the RendProgressCallback passed in to the Renderer::Render() method.

Parameters:
Parameters:
done This is the number completed so far.
total This is the total number of things to complete.
Returns:
Nonzero to continue; zero if the user has canceled.
{ return 1; }
virtual Color GlobalLightLevel ( ) const [pure virtual]

This is a multiplier that scales the brightness of all scene lights.

it doesn't affect the ambient light level. It is included in RendContext so the lights can use it to multiply times the light's color.


RendContext RendContext RendContext RendContext RendContext RendContext RendContext RendContext RendContext RendContext
RendContext RendContext RendContext RendContext RendContext RendContext RendContext RendContext RendContext RendContext