Extention to MaxBakeElement in 3ds Max 8.
Extends MaxBakeElement, allowing Texture Bake Elements to provide parameters of integer, float, and color types in addition to booleans. The RTT dialog is updated to display spinners and color swatches accordingly
#include <renderelements.h>
Public Types |
|
enum | { IID = 0x1f2203c5 } |
MaxBakeElement8 interface ID. More... |
|
Public Member Functions |
|
virtual int | GetParamType (int nParam)=0 |
Allows for getting the bake element
parameter types. |
|
virtual FPValue | GetParamFPValue (int nParam)=0 |
Allows for getting the bake element
parameters as seen in the RTT dialog. |
|
virtual void | SetParamFPValue (int nParam, FPValue newVal)=0 |
Allows for settings the bake element
parameters as seen in the RTT dialog. |
|
virtual FPValue | GetParamFPValueMin (int nParam)=0 |
Allows the bake element to specify a minimum
value for int and float parameters. |
|
virtual FPValue | GetParamFPValueMax (int nParam)=0 |
Allows the bake element to specify a maximum
value for int and float parameters. |
|
virtual void * | GetInterface (ULONG id) |
Renderer
calls this method to see if IRenderElement is compatible with
it. |
anonymous enum |
MaxBakeElement8 interface ID.
{ IID = 0x1f2203c5 };
virtual int GetParamType | ( | int | nParam | ) | [pure virtual] |
Allows for getting the bake element parameter types.
[in] | nParam | Parameter index, 0-based |
Implements MaxBakeElement.
virtual FPValue GetParamFPValue | ( | int | nParam | ) | [pure virtual] |
Allows for getting the bake element parameters as seen in the RTT dialog.
[in] | nParam | Parameter index, 0-based |
virtual void SetParamFPValue | ( | int | nParam, |
FPValue | newVal | ||
) | [pure virtual] |
Allows for settings the bake element parameters as seen in the RTT dialog.
[in] | nParam | Parameter index, 0-based |
[in] | newVal | Parameter value of TYPE_BOOL, TYPE_INT, TYPE_FLOAT, TYPE_FRGBA_BV |
virtual FPValue GetParamFPValueMin | ( | int | nParam | ) | [pure virtual] |
Allows the bake element to specify a minimum value for int and float parameters.
[in] | nParam | The parameter index, 0-based |
virtual FPValue GetParamFPValueMax | ( | int | nParam | ) | [pure virtual] |
Allows the bake element to specify a maximum value for int and float parameters.
[in] | nParam | The parameter index, 0-based |
virtual void* GetInterface | ( | ULONG | id | ) | [inline, virtual] |
Renderer calls this method to see if IRenderElement is compatible with it.
Reimplemented from MaxBakeElement.
Reimplemented in MaxBakeElement10.
{ return (id == IID) ? this : MaxBakeElement::GetInterface(id);}