MAXMultiMaterial |
This class manages state for surface materials, including standard material properties such as ambient, diffuse, specular, and layered textures.
Note: For textures, MAXMultiMaterial manages only an array of pointers and a count of active layers and doesn't worry about the mode of application of the layers. Each texture must be initialized properly to blend or modulate the layers below it. Most common usage for textures should be through the AddTexture() / RemoveTexture() / GetTexture() interface. The textures in the array are owned elsewhere and are assigned as pointers to become "layers". Therefore, this class performs no allocation / deallocation of texture objects.
When to Use
This class is used by the MAXExporter class.
|
Interface Methods |
Description |
|
Class constructor |
|
|
Class destructor |
|
|
Sets the name of the MAXMultiMaterial object |
|
|
Returns the material name |
|
|
Sets the ambient component |
|
|
Sets the diffuse component |
|
|
Sets the specular component |
|
|
Sets the self-illumination component |
|
|
Sets the shininess component |
|
|
Sets the overall opacity |
|
|
Sets the shininess strength |
|
|
Sets the ambient strength |
|
|
Returns the ambient component |
|
|
Returns the diffuse component |
|
|
Returns the specular component |
|
|
Returns the self-illumination component |
|
|
Returns the shininess component |
|
|
Returns the opacity component |
|
|
Returns the shininess strength |
|
|
Returns the ambient strength |
|
|
Sets self-illumination state to on or off |
|
|
Returns whether self-illumination state is on or off |
|
|
Returns the bitmap associated with a channel |
|
|
Returns the texmap associated with a channel |
|
|
Returns the key name for a texture |
|
|
Returns the internal MAX name for a texture |
|
|
Returns the texture modulation intensity for a texture |
|
|
Status of whether or not a given texture map is renderable |
|
|
Sets the key name for a texture |
|
|
Sets the internal MAX name for a texture |
|
|
Sets the texmap associated with a channel |
|
|
Sets the texture modulation intensity for a texture |
This is the class destructor.
Parameters:
None
Return Values:
None
This is the class destructor.
Parameters:
None
Return Values:
None
This method sets the name of the MAXMultiMaterial object.
Parameters:
|
pName |
Name of the object |
This method returns material name.
Parameters:
None
Return Values:
CIFXString
This method sets the ambient component.
Parameters:
|
pColor |
Ambient color |
Return Values:
None
This method sets the diffuse component.
Parameters:
|
pColor |
Diffuse color |
Return Values:
None
This method sets the specular component.
Parameters:
|
pColor |
Specular color |
Return Values:
None
This method sets the self-illumination component.
Parameters:
|
pColor |
Self-illumination color |
Return Values:
None
This method sets the shininess component.
Parameters:
|
fShiny |
Shininess percentage |
Return Values:
None
This method sets the overall opacity.
Parameters:
|
fOpac |
Opacity percentage |
Return Values:
None
This method sets the shininess strength.
Parameters:
|
fShinistr |
Shininess percentage |
Return Values:
None
This method sets the ambient strength.
Parameters:
|
fAmbPercent |
Ambient percentage |
Return Values:
None
This method returns the ambient component.
Parameters:
None
Return Values:
IFXVector4
This method returns the diffuse component.
Parameters:
None
Return Values:
IFXVector4
This method returns the specular component.
Parameters:
None
Return Values:
IFXVector4
This method returns the self-illumination component.
Parameters:
None
Return Values:
IFXVector4
This method returns the shininess component.
Parameters:
None
Return Values:
F32
This method returns the opacity component.
Parameters:
None
Return Values:
F32
This method returns the shininess strength.
Parameters:
None
Return Values:
F32
This method returns the ambient strength.
Parameters:
None
Return Values:
F32
This method sets self-illumination state to on or off.
Parameters:
|
bIsOn |
Returns True if self-illumination is turned on, otherwise it returns False |
Return Values:
None
This method determines whether self-illumination is on or off.
Parameters:
None
Return Values:
BOOL
This method returns the bitmap associated with a given channel.
Parameters:
|
InTextureChannel |
Specifies texture channel |
|
ppBitmap |
The bitmap |
This method returns the texmap associated with a given channel.
Parameters:
|
InTextureChannel |
Specifies texture channel |
|
ppTexmap |
The texture map |
This method returns the key (unique) name for a given texture. In MAX, a standard texture consists of an internal, but not necessarily unique name and an external, unique name.
Parameters:
|
InTextureChannel |
Specifies texture channel |
|
pName |
The key name |
This method returns the internal MAX name associated with a texture.
Parameters:
|
InTextureChannel |
Specifies texture channel |
|
pName |
The texture name |
This method returns the texture modulation intensity for a texture of a given channel.
Parameters:
|
InTextureChannel |
Specifies texture channel |
|
pPercent |
The texture intensity |
This method the status of whether or not a given texture map is renderable.
Parameters:
|
InTextureChannel |
Specifies texture channel |
|
pIsRenderable |
Status specifying whether texture is renderable |
This method sets the key (unique) name for a given texture. In MAX, a standard texture consists of an internal, but not necessarily unique name and an external, unique name.
Parameters:
|
InTextureChannel |
The texture channel |
|
pName |
The name of the texture |
This method sets the internal MAX name associated with a texture.
Parameters:
|
InTextureChannel |
The texture channel |
|
pName |
The name of the texture |
This method sets the texmap associated with a given channel.
Parameters:
|
InTextureChannel |
The texture channel |
|
pTexmap |
The texture map |
This method sets the texture modulation intensity for a texture of a given channel.
Parameters:
|
InTextureChannel |
The texture channel |
|
fPercent |
The texture intensity |
§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.