This method returns the color used for the specified face segment.
HRESULT GetSideColor(
[in] int SegmentNum,
[out, retval] long* pColor);
Parameters:
SegmentNum – The number of the segment. The number of segments is a value between 0, for the first wall, and ITerrainBuilding5::NumOfVertices –1, for the last wall.
pColor – The color of the wall. The color value is used to specify an RGB color. When specifying an explicit RGB color, the color value has the following hexadecimal form: 0x00bbggrr. The low-order byte contains a value for the relative intensity of red; the second byte contains a value for green; and the third byte contains a value for blue.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |