Previous Up Next

M3getRealType
Returns the common type of a material (user type, eventually changed : for example, if the texture is not loaded, the common type is forced to 'flat').
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 M3getRealType (
S3d _session_
HMat3d _material_
)
Parameters

_session_
3D Session
_material_
Material
Return value

Material type
See Also

M3getType