void draw_grad_line ( float  startX,
float  startY,
float  endX,
float  endY,
u32  color1,
u32  color2 
)

Draw solid line

Example: Draw a red-to-blue line through the middle of the screen
 drawLine ( 240, 0, 240, 272, RGB(255,0,0), RGB(0,0,255));
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.
color1 - Beginning color of the line.
color2 - Ending color of the line.

Definition at line 70 of file shape.c.

References CP_Vertex_2D::color, CP_Vertex_2D::x, CP_Vertex_2D::y, and CP_Vertex_2D::z.


Generated on Tue Mar 20 23:01:06 2007 for vLib by  doxygen 1.4.7