Ignore:
Timestamp:
Dec 18, 2003, 1:11:52 AM (19 years ago)
Author:
Sam Hocevar
Message:
  • src/: + Doxygenated public functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/line.c

    r246 r257  
    7777}
    7878
     79/**
     80 * \brief Draw a polyline on the screen using the given character and
     81 *        coordinate arrays. The first and last points are not connected,
     82 *        so in order to draw a polygon you need to specify the starting
     83 *        point at the end of the list as well.
     84 *
     85 * \param x Array of X coordinates. Must have \p n + 1 elements.
     86 * \param y Array of Y coordinates. Must have \p n + 1 elements.
     87 * \param n Number of lines to draw.
     88 * \param c Character to draw the lines with.
     89 * \return void
     90 */
    7991void caca_draw_polyline(const int x[], const int y[], int n, char c)
    8092{
     
    114126}
    115127
     128/**
     129 * \brief Draw a thin polyline on the screen using the given coordinate
     130 *        arrays and with ASCII art. The first and last points are not
     131 *        connected, so in order to draw a polygon you need to specify the
     132 *        starting point at the end of the list as well.
     133 *
     134 * \param x Array of X coordinates. Must have \p n + 1 elements.
     135 * \param y Array of Y coordinates. Must have \p n + 1 elements.
     136 * \param n Number of lines to draw.
     137 * \return void
     138 */
    116139void caca_draw_thin_polyline(const int x[], const int y[], int n)
    117140{
     
    196219 * \param x X coordinate of the point.
    197220 * \param y Y coordinate of the point.
    198  * \return b The clipping bits for the given point.
     221 * \return The clipping bits for the given point.
    199222 */
    200223static uint8_t clip_bits(int x, int y)
Note: See TracChangeset for help on using the changeset viewer.