Project

General

Profile

Previous Up Next

M3getType
Returns the type of material requested by the user.
The result 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


I M3getType (
S3d _session_
HMat3d _material_
)
Parameters

_session_
3D Session
_material_
Material
Return value

Material type
See Also

M3setType