Project

General

Profile

Previous Up Next

M3setType
Defines the default type for a material based on the constraints.

I M3setType (
S3d _session_
HMat3d _material_
I _type_
)
Parameters

_session_
3D Session
_material_
Material
_type_
Type of material which is a component of the following masks :
MAT_COLOR1 Material using color #1 (primary)
MAT_COLOR2 Material using color #2 (secondary)
MAT_COLOR_VERTEX Colors are displayed in Gouraud (interpolation between the colors of the vertices)
MAT_TEXTURED Material textured with texture #1 (primary)
MAT_TEXTURED_BIS Material textured with texture #2 (secondary)
MAT_LIGHT Material with lighting effect
MAT_GOURAUD Material with lighting effect in GOURAUD (interpolation between the lightings of the vertices)
MAT_TRANSP Material with transparency coefficient
MAT_ENV Material with mapping environment
Return value

0 if successful, otherwise nil
See Also

M3getType