Public Member Functions

MultiMtl Class Reference

This reference page is linked to from the following overview topics: Multi-Materials.


Search for all occurrences

Detailed Description

See also:
Class Mtl.

Description:
This class provides access to the developer alterable properties of the 3ds Max Multi/Sub-Object material.

#include <stdmat.h>

Inheritance diagram for MultiMtl:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void  SetNumSubMtls (int n)=0
virtual void  GetSubMtlName (int mtlid, MSTR &s)=0
virtual void  SetSubMtlAndName (int mtlid, Mtl *m, MSTR &subMtlName)=0
virtual void  AddMtl (ReferenceTarget *rt, int mtlid, MCHAR *name)=0
virtual void  RemoveMtl (int mtlid)=0

Member Function Documentation

virtual void SetNumSubMtls ( int  n ) [pure virtual]
Remarks:
Sets the number of sub-materials for the multi-material.
Parameters:
int n

The number of sub-materials.

virtual void GetSubMtlName ( int  mtlid,
MSTR s 
) [pure virtual]
Remarks:
Retrieves the name of the sub-material whose ID is passed.
Parameters:
int mtlid

The zero based index of the sub-material.

MSTR &s

The name is returned here.
virtual void SetSubMtlAndName ( int  mtlid,
Mtl m,
MSTR subMtlName 
) [pure virtual]
Remarks:
Retrieves the name and pointer to the material for the specified sub-material.
Parameters:
int mtlid

The zero based index of the sub-material.

Mtl *m

Points to the sub-material.

MSTR &subMtlName

The name is returned here.
virtual void AddMtl ( ReferenceTarget rt,
int  mtlid,
MCHAR *  name 
) [pure virtual]
Remarks:
Add a sub material with the specified material ID
Parameters:
rt - The material to add as our sub-material
mtlid - The ID to add rt at
name - The name of the new sub material.
virtual void RemoveMtl ( int  mtlid ) [pure virtual]
Remarks:
Remove the sub-material at the specified ID
Parameters:
mtlid - the ID of the material to remove

MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl
MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl MultiMtl