This method sets the color used for the specified face segment, this method also sets the FillType to FACE_COLOR (= 0).
HRESULT SetSideColor(
[in] int SegmentNum,
[in] long Color,
[in, defaultvalue(0)] long DontDraw);
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.
Color – 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. The high-order byte must be zero. The maximum value for a single byte is 0xFF.
DontDraw – When set to TRUE, the building is not redrawn after the method is called. When set to FALSE redraws every time the method is called.
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. |