Public Member Functions | Public Attributes

SubRendParams Struct Reference

Search for all occurrences

Detailed Description

This structure contains information on rendering for Mirror and Automatic Cubic materials.

This is used by the methods of the RenderMapsContext class.

See also:
Class RenderMapsContext.

#include <render.h>

Inheritance diagram for SubRendParams:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Public Attributes

RendType  rendType
  The rendering type being done.
BOOL  fieldRender
  TRUE if field rendering is being used; otherwise FALSE.
BOOL  evenLines
  This is used when field rendering.
BOOL  doingMirror
  This is used as part of implementing the Mirror material.
BOOL  doEnvMap
int  devWidth
  The dimensions in pixels of Bitmap tobm.
int  devHeight
float  devAspect
  The aspect ratio of Bitmap tobm.
int  xorg
  The location on the screen of the upper left corner of the output bitmap.
int  yorg
int  xmin
  The area of the screen being rendered.
int  xmax
int  ymin
int  ymax
Point2  blowupCenter
  This parameter is available in release 4.0 and later only.
Point2  blowupFactor
  This parameter is available in release 4.0 and later only.

Member Function Documentation

virtual INT_PTR Execute ( int  cmd,
ULONG_PTR  arg1 = 0,
ULONG_PTR  arg2 = 0,
ULONG_PTR  arg3 = 0 
) [inline, virtual]
Remarks:
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.
{ return 0; }

Member Data Documentation

RendType rendType

The rendering type being done.

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.

This is used as part of implementing the Mirror material.

It should be FALSE in all other cases.

BOOL doEnvMap
int devWidth

The dimensions in pixels of Bitmap tobm.

int devHeight
float devAspect

The aspect ratio of Bitmap tobm.

int xorg

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

int yorg
int xmin

The area of the screen being rendered.

int xmax
int ymin
int ymax

This parameter is available in release 4.0 and later only.


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

This parameter is available in release 4.0 and later only.


The X and Y scale factors for render blowup.