caca_primitives(3caca) | libcaca | caca_primitives(3caca) |
caca_primitives - libcaca primitives drawing
libcaca canvas frame handling
__extern int caca_draw_line (caca_canvas_t *, int,
int, int, int, uint32_t)
Draw a line on the canvas using the given character. __extern int
caca_draw_polyline (caca_canvas_t *, int const x[], int const
y[], int, uint32_t)
Draw a polyline. __extern int caca_draw_thin_line (caca_canvas_t
*, int, int, int, int)
Draw a thin line on the canvas, using ASCII art. __extern int
caca_draw_thin_polyline (caca_canvas_t *, int const x[], int
const y[], int)
Draw an ASCII art thin polyline. __extern int caca_draw_circle
(caca_canvas_t *, int, int, int, uint32_t)
Draw a circle on the canvas using the given character. __extern int
caca_draw_ellipse (caca_canvas_t *, int, int, int, int,
uint32_t)
Draw an ellipse on the canvas using the given character. __extern int
caca_draw_thin_ellipse (caca_canvas_t *, int, int, int, int)
Draw a thin ellipse on the canvas. __extern int caca_fill_ellipse
(caca_canvas_t *, int, int, int, int, uint32_t)
Fill an ellipse on the canvas using the given character. __extern int
caca_draw_box (caca_canvas_t *, int, int, int, int, uint32_t)
Draw a box on the canvas using the given character. __extern int
caca_draw_thin_box (caca_canvas_t *, int, int, int, int)
Draw a thin box on the canvas. __extern int caca_draw_cp437_box
(caca_canvas_t *, int, int, int, int)
Draw a box on the canvas using CP437 characters. __extern int
caca_fill_box (caca_canvas_t *, int, int, int, int, uint32_t)
Fill a box on the canvas using the given character. __extern int
caca_draw_triangle (caca_canvas_t *, int, int, int, int, int,
int, uint32_t)
Draw a triangle on the canvas using the given character. __extern int
caca_draw_thin_triangle (caca_canvas_t *, int, int, int, int,
int, int)
Draw a thin triangle on the canvas. __extern int caca_fill_triangle
(caca_canvas_t *, int, int, int, int, int, int, uint32_t)
Fill a triangle on the canvas using the given character. __extern int
caca_fill_triangle_textured (caca_canvas_t *cv, int coords[6],
caca_canvas_t *tex, float uv[6])
Fill a triangle on the canvas using an arbitrary-sized texture.
These functions provide routines for primitive drawing, such as lines, boxes, triangles and ellipses.
This function never fails.
Parameters
Returns
Referenced by caca_draw_box(), caca_draw_triangle(), and caca_fill_ellipse().
Draw a polyline on the canvas using the given character and coordinate arrays. The first and last points are not connected, hence in order to draw a polygon you need to specify the starting point at the end of the list as well.
This function never fails.
Parameters
Returns
This function never fails.
Parameters
Returns
Referenced by caca_draw_thin_triangle().
Draw a thin polyline on the canvas using the given coordinate arrays and with ASCII art. The first and last points are not connected, so in order to draw a polygon you need to specify the starting point at the end of the list as well.
This function never fails.
Parameters
Returns
This function never fails.
Parameters
Returns
This function never fails.
Parameters
Returns
This function never fails.
Parameters
Returns
This function never fails.
Parameters
Returns
References caca_draw_line().
This function never fails.
Parameters
Returns
References caca_draw_line().
This function never fails.
Parameters
Returns
This function never fails.
Parameters
Returns
This function never fails.
Parameters
Returns
References caca_add_dirty_rect(), and caca_put_char().
Referenced by caca_conio_clreol().
This function never fails.
Parameters
Returns
References caca_draw_line().
This function never fails.
Parameters
Returns
References caca_draw_thin_line().
This function never fails.
Parameters
Returns
References caca_fill_triangle(), and caca_put_char().
Referenced by caca_fill_triangle().
This function fails if one or both the canvas are missing
Parameters
Returns
Generated automatically by Doxygen for libcaca from the source code.
Tue Jul 12 2022 | Version 0.99.beta20 |