Structure SubRendParams

3DS Max Plug-In SDK

Structure SubRendParams

See Also: Class RenderMapsContext.

struct SubRendParams : public BaseInterfaceServer

Description:

This structure contains information on rendering for Mirror and Automatic Cubic materials. This is used by the methods of the RenderMapsContext class.

Structure:

struct SubRendParams {

RendType rendType;

The rendering type being done. See the List of Render Types for more information.

BOOL fieldRender;

TRUE if field rendering is being used; otherwise FALSE.

BOOL evenLines;

This is used when field rendering. TRUE if doing even numbered scanlines; FALSE for odd numbered.

BOOL doingMirror;

This is used as part of implementing the Mirror material. It should be FALSE in all other cases.

int devWidth, devHeight;

The dimensions in pixels of Bitmap tobm.

float devAspect;

The aspect ratio of Bitmap tobm.

int xorg, yorg;

The location on the screen of the upper left corner of the output bitmap.

int xmin,xmax,ymin,ymax;

The area of the screen being rendered.

Point2 blowupCenter;

This parameter is available in release 4.0 and later only.

The 2D point at the center of the render blowup region.

Point2 blowupFactor;

This parameter is available in release 4.0 and later only.

The X and Y scale factors for render blowup.

Prototype:

virtual INT_PTR Execute(int cmd, ULONG arg1=0, ULONG arg2=0, ULONG arg3=0);

Remarks:

This method is available in release 2.0 and later only.

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.

Parameters:

int cmd

The index of the command to execute.

ULONG arg1=0

Optional argument 1. See the documentation where the cmd option is discussed for more details on these parameters.

ULONG arg2=0

Optional argument 2.

ULONG arg3=0

Optional argument 3.

Return Value:

An integer return value. See the documentation where the cmd option is discussed for more details on the meaning of this value.

};