Drawing primitives.
[The CRT X-Y library (libcrtxy)]


Functions

void XY_draw_line (XY_fixed x1, XY_fixed y1, XY_fixed x2, XY_fixed y2, XY_color color, XY_fixed thickness)
 Draw a single line between (x1,y1) and (x2,y2) (in canvas virtual world units) and in the specified color/alpha and thickness.
XY_bool XY_draw_lines (XY_lines *lines)
 Draw a collection of lines.
void XY_draw_one_line (XY_line line)
 Draw a single line using an XY_line struct.
void XY_draw_point (XY_fixed x, XY_fixed y, XY_color color, XY_fixed thickness)
 Draw a point at (x,y) (in canvas virtual world units) in the specified color/alpha and thickness.

Function Documentation

void XY_draw_line ( XY_fixed  x1,
XY_fixed  y1,
XY_fixed  x2,
XY_fixed  y2,
XY_color  color,
XY_fixed  thickness 
)

Draw a single line between (x1,y1) and (x2,y2) (in canvas virtual world units) and in the specified color/alpha and thickness.

Parameters:
x1 is the X coordinate of the line's starting point.
y1 is the Y coordinate of the line's starting point.
x2 is the X coordinate of the line's ending point.
y2 is the Y coordinate of the line's ending point.
color is an XY_color representing the color and transparency of the line.
thickness is an XY_fixed representing the thickness of the line.
Todo:
Create line clip routine (for efficiency)

XY_bool XY_draw_lines ( XY_lines lines  ) 

Draw a collection of lines.

Parameters:
lines is an XY_lines pointer with a collection of lines to draw.
Returns:
On success: XY_TRUE. On failure, XY_FALSE, and sets error code to one of the following:

void XY_draw_one_line ( XY_line  line  ) 

Draw a single line using an XY_line struct.

Parameters:
line is an XY_line struct representing a line to draw.

void XY_draw_point ( XY_fixed  x,
XY_fixed  y,
XY_color  color,
XY_fixed  thickness 
)

Draw a point at (x,y) (in canvas virtual world units) in the specified color/alpha and thickness.

Parameters:
x is the X coordinate of the point.
y is the Y coordinate of the point.
color is an XY_color representing the color and transparency of the point.
thickness is an XY_fixed representing the thickness of the point.


Generated on Tue Sep 2 23:45:36 2008 for libcrtxy by  doxygen 1.5.5