# DrawMaterialQuad

Landscape
5.1 OC
bool
string szMaterialTexture Material-Texture combination for the material to be drawn.
int x1 X coordinate of the first corner. Always global.
int y1 Y coordinate of the first corner. Always global.
int x2 X coordinate of the second corner. Always global.
int y2 Y coordinate of the second corner. Always global.
int x3 X coordinate of the third corner. Always global.
int y3 Y coordinate of the third corner. Always global.
int x4 X coordinate of the fourth corner. Always global.
int y4 Y coordinate of the fourth corner. Always global.
bool sub If `true`, the material will be drawn as 'underground'.
Draws a four-cornered polygon of the specified material and texture into the landscape.
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.
DrawMaterialQuad("Gold-gold", 0,0, LandscapeWidth()-1,0, LandscapeWidth()-1,LandscapeHeight()-1, 0,LandscapeHeight()-1);
Fills the complete landscape with gold.
InsertMaterial
Sven2
2002-05