Changeset 699


Ignore:
Timestamp:
Mar 27, 2006, 8:07:18 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Created a minimal raw driver that outputs stuff to stdout.
Location:
libcaca/trunk/caca
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/Makefile.am

    r692 r699  
    1616        driver_ncurses.c \
    1717        driver_network.c \
     18        driver_raw.c \
    1819        driver_slang.c \
    1920        driver_vga.c \
  • libcaca/trunk/caca/caca.c

    r684 r699  
    11/*
    22 *  libcaca       Colour ASCII-Art library
    3  *  Copyright (c) 2002-2006 Sam Hocevar <sam@zoy.org>
     3 *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
    44 *                All Rights Reserved
    55 *
     
    134134        if(!strcasecmp(var, "gl")) return gl_install(kk);
    135135#endif
     136        if(!strcasecmp(var, "raw")) return raw_install(kk);
    136137#if defined(USE_SLANG)
    137138        if(!strcasecmp(var, "slang")) return slang_install(kk);
     
    171172    if(ncurses_install(kk) == 0) return 0;
    172173#endif
    173 #if defined(USE_NETWORK)
    174     if(network_install(kk) == 0) return 0;
    175 #endif
    176174
    177175    return -1;
  • libcaca/trunk/caca/caca_internals.h

    r689 r699  
    4040{
    4141    CACA_DRIVER_NONE = 0,
     42    CACA_DRIVER_RAW = 1,
    4243#if defined(USE_CONIO)
    43     CACA_DRIVER_CONIO = 1,
     44    CACA_DRIVER_CONIO = 2,
     45#endif
     46#if defined(USE_GL)
     47    CACA_DRIVER_GL = 3,
     48#endif
     49#if defined(USE_NETWORK)
     50    CACA_DRIVER_NETWORK = 4,
    4451#endif
    4552#if defined(USE_NCURSES)
    46     CACA_DRIVER_NCURSES = 2,
     53    CACA_DRIVER_NCURSES = 5,
    4754#endif
    4855#if defined(USE_SLANG)
    49     CACA_DRIVER_SLANG = 3,
     56    CACA_DRIVER_SLANG = 6,
     57#endif
     58#if defined(USE_VGA)
     59    CACA_DRIVER_VGA = 7,
     60#endif
     61#if defined(USE_WIN32)
     62    CACA_DRIVER_WIN32 = 8,
    5063#endif
    5164#if defined(USE_X11)
    52     CACA_DRIVER_X11 = 4,
    53 #endif
    54 #if defined(USE_WIN32)
    55     CACA_DRIVER_WIN32 = 5,
    56 #endif
    57 #if defined(USE_GL)
    58     CACA_DRIVER_GL = 6,
    59 #endif
    60 #if defined(USE_NETWORK)
    61     CACA_DRIVER_NETWORK = 7,
    62 #endif
    63 #if defined(USE_VGA)
    64     CACA_DRIVER_VGA = 8,
     65    CACA_DRIVER_X11 = 9,
    6566#endif
    6667};
    6768
    68 /* Available drivers */
     69/* Available external drivers */
    6970#if defined(USE_CONIO)
    7071int conio_install(caca_t *);
     
    7374int gl_install(caca_t *);
    7475#endif
     76#if defined(USE_NETWORK)
     77int network_install(caca_t *);
     78#endif
    7579#if defined(USE_NCURSES)
    7680int ncurses_install(caca_t *);
    7781#endif
     82int raw_install(caca_t *);
    7883#if defined(USE_SLANG)
    7984int slang_install(caca_t *);
     85#endif
     86#if defined(USE_VGA)
     87int vga_install(caca_t *);
    8088#endif
    8189#if defined(USE_WIN32)
     
    8492#if defined(USE_X11)
    8593int x11_install(caca_t *);
    86 #endif
    87 #if defined(USE_NETWORK)
    88 int network_install(caca_t *);
    89 #endif
    90 #if defined(USE_VGA)
    91 int vga_install(caca_t *);
    9294#endif
    9395
Note: See TracChangeset for help on using the changeset viewer.