DrawMaterialQuad
Category: Landscape
Since engine version: 4.9.1.0 GWE
Description
Draws a four-cornered polygon of the specified material and texture into the landscape. If no texture is specified, Smooth is assumed.
Syntax
bool DrawMaterialQuad
(string szMaterialTexture, int iX1, int iY1, int iX2, int iY2, int iX3, int iY3, int iX4, int iY4, bool sub);
Parameters
- szMaterialTexture:
Material-Texture combination for the material to be drawn
- iX1:
X coordinate of the first corner. Always global.
- iY1:
Y coordinate of the first corner. Always global.
- iX2:
X coordinate of the second corner. Always global.
- iY2:
Y coordinate of the second corner. Always global.
- iX3:
X coordinate of the third corner. Always global.
- iY3:
Y coordinate of the third corner. Always global.
- iX4:
X coordinate of the fourth corner. Always global.
- iY4:
Y coordinate of the fourth corner. Always global.
- sub:
If true, the material will be drawn as 'underground'.
Remark
The corners of the polygon should be specified in clockwise order and polygon boundaries should not intersect. For more complex or concave shapes you make multiple calls to this function.
Example
Sven2, Mai 2002