#include <stdmat.h>
Class Description
- See also:
- Class Mtl.
- Description:
- This class provides access to the developer alterable
properties of the 3ds Max Multi/Sub-Object material.
Member Function Documentation
virtual void SetNumSubMtls |
( |
int |
n |
) |
[pure virtual] |
- Parameters:
- int n
The number of sub-materials.
virtual void GetSubMtlName |
( |
int |
mtlid, |
|
|
MSTR & |
s |
|
) |
|
[pure virtual] |
- 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] |
- 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, |
|
|
const MCHAR * |
name |
|
) |
|
[pure virtual] |
- 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 AddMtl |
( |
ReferenceTarget * |
rt, |
|
|
int |
mtlid, |
|
|
MCHAR * |
name |
|
) |
|
[inline, sealed, virtual] |
- Deprecated:
- Deprecated method in terms of implementation as of 3ds Max 2013
- re-implement with const MCHAR* method signature
{
return AddMtl(rt, mtlid, const_cast<const MCHAR*>(name)); }
virtual void RemoveMtl |
( |
int |
mtlid |
) |
[pure virtual] |
- Parameters:
-
mtlid |
- the ID of the material to remove |