Previous Up Next

M3getMaterialColor
Returns the color '_num_' (= 1 or 2) applied to a material, coded in RGB hexadecimal.
By default, these colors are white : 0xFFFFFF

I M3getMaterialColor (
S3d _session_
HMat3d _material_
I _num_
)
Parameters

_session_
3D Session
_material_
Material
_num_
Color number
Return value

RGB color in 24 bit hexadecimal