DrawMaterialQuad
Category: Landscape
Since engine version: 5.1 OC
Description
Draws a four-cornered polygon of the specified material and texture into the landscape.
Syntax
bool DrawMaterialQuad(string szMaterialTexture, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, bool sub);
Parameters
- szMaterialTexture:
Material-Texture combination for the material to be drawn.
- x1:
X coordinate of the first corner. Always global.
- y1:
Y coordinate of the first corner. Always global.
- x2:
X coordinate of the second corner. Always global.
- y2:
Y coordinate of the second corner. Always global.
- x3:
X coordinate of the third corner. Always global.
- y3:
Y coordinate of the third corner. Always global.
- x4:
X coordinate of the fourth corner. Always global.
- y4:
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, 2002-05