RenderRectangle Constructor(Unit,Unit,Unit,Unit,LineDef,Color)
In This Topic
Initializes a new instance of the
RenderRectangle class, assigning the location and the size of the rectangle, the
LineDef used to draw it, and the fill color.
Syntax
'Declaration
Public Function New( _
ByVal As Unit, _
ByVal As Unit, _
ByVal As Unit, _
ByVal As Unit, _
ByVal As LineDef, _
ByVal As Color _
)
public RenderRectangle(
Unit ,
Unit ,
Unit ,
Unit ,
LineDef ,
Color
)
Parameters
- x
- The X coordinate of the rectangle, relative to the current object's location.
- y
- The Y coordinate of the rectangle, relative to the current object's location.
- width
- The width of the rectangle.
- height
- The height of the rectangle.
- shapeLine
- The LineDef used to draw the rectangle.
- shapeFillColor
- The color used to fill the rectangle.
See Also