Ignore:
Timestamp:
Sep 27, 2008, 3:12:46 PM (12 years ago)
Author:
Sam Hocevar
Message:

Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/figfont.c

    r2313 r2821  
    11/*
    2  *  figfont       libcucul FIGfont test program
     2 *  figfont       libcaca FIGfont test program
    33 *  Copyright (c) 2007 Sam Hocevar <sam@zoy.org>
    44 *                All Rights Reserved
     
    2020#endif
    2121
    22 #include "cucul.h"
     22#include "caca.h"
    2323
    2424int main(int argc, char *argv[])
    2525{
    26     cucul_canvas_t *cv;
     26    caca_canvas_t *cv;
    2727    void *buffer;
    2828    size_t len;
     
    3535    }
    3636
    37     cv = cucul_create_canvas(0, 0);
    38     if(cucul_canvas_set_figfont(cv, argv[1]))
     37    cv = caca_create_canvas(0, 0);
     38    if(caca_canvas_set_figfont(cv, argv[1]))
    3939    {
    4040        fprintf(stderr, "Could not open font\n");
     
    4444    while(argv[2][0])
    4545    {
    46         cucul_set_color_ansi(cv, 1 + ((color += 4) % 15), CUCUL_TRANSPARENT);
    47         cucul_put_figchar(cv, argv[2]++[0]);
     46        caca_set_color_ansi(cv, 1 + ((color += 4) % 15), CACA_TRANSPARENT);
     47        caca_put_figchar(cv, argv[2]++[0]);
    4848    }
    4949
    50     buffer = cucul_export_memory(cv, "utf8", &len);
     50    buffer = caca_export_memory(cv, "utf8", &len);
    5151    fwrite(buffer, len, 1, stdout);
    5252    free(buffer);
    5353
    54     cucul_free_canvas(cv);
     54    caca_free_canvas(cv);
    5555
    5656    return 0;
Note: See TracChangeset for help on using the changeset viewer.