This class has a set of data members, and these parameters are passed to the renderer when the renderer is opened.
All methods of this class are implemented by the system.
abufBandHeight = rendpar.dontAntialiasBG>>8;
#include <render.h>
Public Types |
|
enum | RenderMode { RM_Default, RM_IReshade } |
Render modes. More... |
|
enum | Execute_Commands { kCommand_IsToneOpPreview = 0x4e80014c } |
List of commands that can be passed to Execute() More... |
|
Public Member Functions |
|
RendParams () | |
Constructor. |
|
virtual | ~RendParams () |
Destructor. |
|
RenderMode | GetRenderMode () |
Returns the rendering mode. |
|
void | SetRenderElementMgr (IRenderElementMgr *pIRenderElementMgr) |
Sets the render element manager used.
|
|
IRenderElementMgr * | GetRenderElementMgr () |
Returns a pointer to the render element
manager interface. |
|
virtual INT_PTR | Execute (int cmd, ULONG_PTR arg1=0, ULONG_PTR arg2=0, ULONG_PTR arg3=0) |
This is a general purpose function that
allows the API to be extended in the future. |
|
bool | IsToneOperatorPreviewRender () |
Public Attributes |
|
RendType | rendType |
BOOL | isNetRender |
BOOL | fieldRender |
int | fieldOrder |
TimeValue | frameDur |
BOOL | colorCheck |
int | vidCorrectMethod |
int | ntscPAL |
BOOL | superBlack |
int | sbThresh |
BOOL | rendHidden |
BOOL | force2Side |
BOOL | inMtlEdit |
float | mtlEditTile |
BOOL | mtlEditAA |
BOOL | multiThread |
BOOL | useEnvironAlpha |
BOOL | dontAntialiasBG |
BOOL | useDisplacement |
bool | useRadiosity |
bool | computeRadiosity |
Texmap * | envMap |
Atmospheric * | atmos |
Effect * | effect |
RadiosityEffect * | pRadiosity |
ToneOperator * | pToneOp |
TimeValue | firstFrame |
int | scanBandHeight |
ULONG | extraFlags |
int | width |
int | height |
BOOL | filterBG |
BOOL | alphaOutOnAdditive |
enum RenderMode |
Render modes.
RM_Default |
normal rendering mode |
RM_IReshade |
render is being used for interactive reshading |
{ RM_Default, RM_IReshade, };
enum Execute_Commands |
List of commands that can be passed to Execute()
kCommand_IsToneOpPreview |
Queries whether this is a tone operator preview rendering. Execute() will return non-zero if it is indeed a preview render. None of the "arg" parameters are used. |
{ kCommand_IsToneOpPreview = 0x4e80014c };
RendParams | ( | ) | [inline] |
Constructor.
The initialization can be seen in the header file RENDER.H.
{ rendType = RENDTYPE_NORMAL; isNetRender = FALSE; fieldRender = FALSE; fieldOrder = 0; frameDur = 0; colorCheck = 0; vidCorrectMethod = 0; ntscPAL = 0; superBlack = 0; sbThresh = 0; rendHidden = 0; force2Side = 0; inMtlEdit = 0; mtlEditTile = 0; mtlEditAA = 0; multiThread = 0; useEnvironAlpha = 0; dontAntialiasBG = 0; useDisplacement = 0; useRadiosity = true; computeRadiosity = true; envMap = NULL; atmos = NULL; mpIRenderElementMgr = NULL; effect = NULL; pRadiosity = NULL; pToneOp = NULL; firstFrame = 0; scanBandHeight = 0; extraFlags = 0; width=height = 0; filterBG = 0; #ifdef SIMPLIFY_AREA_LIGHTS simplifyAreaLights = false; #endif }
virtual ~RendParams | ( | ) | [inline, virtual] |
Destructor.
{}
RenderMode GetRenderMode | ( | ) | [inline] |
Returns the rendering mode.
One of the following values:
RM_Default
This is being used for a normal rendering.
RM_IReshade
The render is being used for interactive reshading.
{ return RM_Default; } // mjm - 06.08.00
void SetRenderElementMgr | ( | IRenderElementMgr * | pIRenderElementMgr | ) | [inline] |
Sets the render element manager used.
{ mpIRenderElementMgr = pIRenderElementMgr; } // mjm - 06.30.00
IRenderElementMgr* GetRenderElementMgr | ( | ) | [inline] |
Returns a pointer to the render element manager interface.
{ return( Execute(RP_ANTIALIAS_OFF) ? NULL : mpIRenderElementMgr); }
virtual INT_PTR Execute | ( | int | cmd, |
ULONG_PTR | arg1 = 0 , |
||
ULONG_PTR | arg2 = 0 , |
||
ULONG_PTR | arg3 = 0 |
||
) | [inline, virtual] |
This is a general purpose function that allows the API to be extended in the future.
The 3ds Max development team can assign new cmd numbers and continue to add functionality to this class without having to 'break' the API.
{ return 0; }
bool IsToneOperatorPreviewRender | ( | ) | [inline] |
{ // Execute the special command on the render params INT_PTR result = Execute(kCommand_IsToneOpPreview); return (result != 0); }
RendType rendType |
TimeValue frameDur |
TimeValue firstFrame |