|
|
| void draw_line |
( |
float |
startX, |
|
|
float |
startY, |
|
|
float |
endX, |
|
|
float |
endY, |
|
|
u32 |
color | |
|
) |
| | |
Draw solid line
- Example: Draw a solid red line through the middle of the screen
drawLine ( 240, 0, 240, 272, RGB(255,0,0));
- Parameters:
-
| startX | - Horizontal starting point of the line. |
| startY | - Vertical starting point of the line. |
| endX | - Horizontal ending point of the line. |
| endY | - Vertical ending point of the line. |
| color | - Color of the line. |
Definition at line 54 of file shape.c.
References CP_Vertex_2D::color, CP_Vertex_2D::x, CP_Vertex_2D::y, and CP_Vertex_2D::z.
|