|
|
| void draw_fill_rect |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
width, |
|
|
float |
height, |
|
|
u32 |
color | |
|
) |
| | |
Draw a filled rectangle
- Example: Draw a solid green filled rectangle
drawLine ( 0, 0, 480, 272, RGB(0,255,0));
- Parameters:
-
| x | - Horizontal position. |
| y | - Vertical position. |
| width | - The width of the rectangle. |
| height | - The height of the rectangle. |
| color | - Color of the rectangle. |
Definition at line 139 of file shape.c.
References CP_Vertex_2D::color, CP_Vertex_2D::x, CP_Vertex_2D::y, and CP_Vertex_2D::z.
|