MAXMaterialMapper

This class maps 3D Studio MAX§ material to indices in the converted material list.

When to Use

This class is used by the MAXMaterialConverter class.

Interface Methods

Description

MAXMaterialMapper

Class constructor

~MAXMaterialMapper

Class destructor

Init

Initializes the class instance

GetNumMtls

Returns the number of materials mapped by the object

GetMapping

Gets the mapping from a 3D Studio MAX material ID

SetMapping

Sets the mapping from a 3D Studio MAX material ID


MAXMaterialMapper::MAXMaterialMapper()

This is the class destructor.

Parameters:

None

Return Values:

None


MAXMaterialMapper::~MAXMaterialMapper()

This is the class destructor.

Parameters:

None

Return Values:

None


MAXMaterialMapper::Init (U32 in_MtlCnt)

This method initializes the class instance.

Parameters:

in_MtlCnt

Number of materials

Return Values


MAXMaterialMapper:: GetNumMtls ()

This method returns the number of materials mapped by the object.

Parameters:

None

Return Values

U32 Number of materials


MAXMaterialMapper:: GetMapping (U32 in_Mtl)

This method gets the mapping from a 3D Studio MAX material ID.

Parameters:

in_Mtl

The MAX material ID

Return Values

U32 The mapper index


MAXMaterialMapper:: SetMapping (U32 in_Mtl, U32 in_Mapping)

This method sets the mapping from a 3D Studio MAX material ID.

Parameters:

in_Mtl

MAX material ID

in_Mapping

The mapper index to assign

Return Values

§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.