Ignore:
Timestamp:
May 19, 2009, 2:52:10 AM (11 years ago)
Author:
Sam Hocevar
Message:

A lot of documentation updates here and there, including bugfixes dating
back to the libcucul merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/doc/migrating.dox

    r2824 r3473  
    4848    caca_canvas_t *cv;
    4949    caca_display_t *dp;
    50     dp = caca_create_display(cv);
     50    dp = caca_create_display(NULL);
    5151    cv = caca_get_canvas(dp);
    5252    /* Set window title */
     
    7272 Note the following important things:
    7373
    74  - Functions now take an object handle as their first argument.
    75  - All input/output functions start with \b caca_ and all
    76    drawing and text handling functions start with \b caca_ .
     74 - Most functions now take an object handle as their first argument.
    7775
    7876 \section foo2 Migration strategy
     
    105103\endcode
    106104</td></tr></table>
     105
     106 The modified code is guaranteed to build both with \e libcaca 0.x and
     107 \e libcaca 1.0.
    107108
    108109 \section foo3 Function equivalence list
     
    147148 - \b caca_putchar(): use caca_put_char().
    148149 - \b caca_putstr(): use caca_put_str().
    149  - \b caca_printf(): use caca_printf().
     150 - \b caca_printf(): unchanged.
    150151 - \b caca_clear(): use caca_clear_canvas().
    151152
     
    155156 fact that they now act on a given canvas.
    156157
    157  - \b caca_draw_line(): use caca_draw_line().
    158  - \b caca_draw_polyline(): use caca_draw_polyline().
    159  - \b caca_draw_thin_line(): use caca_draw_thin_line().
    160  - \b caca_draw_thin_polyline(): use caca_draw_thin_polyline().
    161 
    162  - \b caca_draw_circle(): use caca_draw_circle().
    163  - \b caca_draw_ellipse(): use caca_draw_ellipse().
    164  - \b caca_draw_thin_ellipse(): use caca_draw_thin_ellipse().
    165  - \b caca_fill_ellipse(): use caca_fill_ellipse().
    166 
    167  - \b caca_draw_box(): use caca_draw_box().
     158 - \b caca_draw_line(): unchanged.
     159 - \b caca_draw_polyline(): unchanged.
     160 - \b caca_draw_thin_line(): unchanged.
     161 - \b caca_draw_thin_polyline(): unchanged.
     162
     163 - \b caca_draw_circle(): unchanged.
     164 - \b caca_draw_ellipse(): unchanged.
     165 - \b caca_draw_thin_ellipse(): unchanged.
     166 - \b caca_fill_ellipse(): unchanged.
     167
     168 - \b caca_draw_box(): unchanged.
    168169 - \b caca_draw_thin_box(): use caca_draw_thin_box() or caca_draw_cp437_box().
    169  - \b caca_fill_box(): use caca_fill_box().
    170 
    171  - \b caca_draw_triangle(): use caca_draw_triangle().
    172  - \b caca_draw_thin_triangle(): use caca_draw_thin_triangle().
    173  - \b caca_fill_triangle(): use caca_fill_triangle().
     170 - \b caca_fill_box(): unchanged.
     171
     172 - \b caca_draw_triangle(): unchanged.
     173 - \b caca_draw_thin_triangle(): unchanged.
     174 - \b caca_fill_triangle(): unchanged.
    174175
    175176 \subsection bar5 Mathematical functions
    176177
    177  - \b caca_rand(): use caca_rand(). The second argument is different, make
     178 - \b caca_rand(): unchanged, but the second argument is different, make
    178179   sure you take that into account.
    179180 - \b caca_sqrt(): this function is now deprecated, use your system's
Note: See TracChangeset for help on using the changeset viewer.