Changeset 839 for libcaca


Ignore:
Timestamp:
Apr 22, 2006, 9:04:49 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Disabled sprite stuff from the tests.
Location:
libcaca/trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/demo.c

    r832 r839  
    3636int outline = 0;
    3737int dithering = 0;
     38#if 0
    3839cucul_sprite_t *sprite = NULL;
     40#endif
    3941
    4042cucul_canvas_t *cv;
     
    5658
    5759    /* Initialize data */
     60#if 0
    5861    sprite = cucul_load_sprite(DATADIR "/caca.txt");
    5962    if(!sprite)
     
    6164    if(!sprite)
    6265        sprite = cucul_load_sprite("examples/caca.txt");
     66#endif
    6367
    6468    /* Disable cursor */
     
    131135                    demo = demo_ellipses;
    132136                    break;
     137#if 0
    133138                case 's':
    134139                case 'S':
     
    136141                        demo = demo_sprites;
    137142                    break;
     143#endif
    138144                case 'r':
    139145                case 'R':
     
    188194
    189195    /* Clean up */
     196#if 0
    190197    cucul_free_sprite(sprite);
     198#endif
    191199    caca_free_display(dp);
    192200    cucul_free_canvas(cv);
     
    216224    cucul_putstr(cv, 4, 13, "'c': colour");
    217225    cucul_putstr(cv, 4, 14, "'r': render");
     226#if 0
    218227    if(sprite)
    219228        cucul_putstr(cv, 4, 15, "'s': sprites");
     229#endif
    220230
    221231    cucul_putstr(cv, 4, 16, "settings:");
     
    310320
    311321    /* Draw a sprite on the pyramid */
     322#if 0
    312323    cucul_draw_sprite(cv, xo, yo, sprite, 0);
     324#endif
    313325
    314326    /* Draw a trail behind the foreground sprite */
     
    325337
    326338    /* Draw foreground sprite */
     339#if 0
    327340    cucul_draw_sprite(cv, cucul_get_canvas_width(cv) / 2 + cos(0.02*i) * cucul_get_canvas_width(cv) / 4,
    328341                   cucul_get_canvas_height(cv) / 2 + sin(0.02*i) * cucul_get_canvas_height(cv) / 3,
    329342                   sprite, 0);
     343#endif
    330344}
    331345
     
    483497static void demo_sprites(void)
    484498{
     499#if 0
    485500    cucul_draw_sprite(cv, cucul_rand(0, cucul_get_canvas_width(cv)),
    486501                      cucul_rand(0, cucul_get_canvas_height(cv)), sprite, 0);
     502#endif
    487503}
    488504
  • libcaca/trunk/test/spritedit.c

    r832 r839  
    2323int main(int argc, char **argv)
    2424{
     25#if 0
    2526    cucul_canvas_t *cv;
    2627    caca_display_t *dp;
     
    139140    caca_free_display(dp);
    140141    cucul_free_canvas(cv);
     142#endif
    141143
    142144    return 0;
Note: See TracChangeset for help on using the changeset viewer.