Ignore:
Timestamp:
Nov 9, 2003, 1:40:53 PM (19 years ago)
Author:
Sam Hocevar
Message:
  • libee is now standalone.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/common.h

    r75 r79  
    4343 * Graphics primitives
    4444 */
    45 #ifdef USE_SLANG
    46 #   include <slang.h>
    47 #   define gfx_color(x) SLsmg_set_color(x)
    48 #   define gfx_goto(x,y) SLsmg_gotorc(y,x)
    49 #   define gfx_putchar(x) SLsmg_write_char(x)
    50 #   define gfx_putstr(x) SLsmg_write_string(x)
    51 #elif USE_NCURSES
    52 #define box box_other
    53 #   include <curses.h>
    54 #undef box
    55 #   define gfx_color(x) attrset(COLOR_PAIR(x))
    56 #   define gfx_goto(x,y) move(y,x)
    57 #   define gfx_putchar(x) addch(x)
    58 #   define gfx_putstr(x) addstr(x)
    59 #else
    60 #   define gfx_color(x) (void)(x)
    61 #   define gfx_goto(x,y) do{ (void)(x); (void)(y); } while(0)
    62 #   define gfx_putchar(x) (void)(x)
    63 #   define gfx_putstr(x) (void)(x)
    64 #endif
    65 
    66 #define gfx_putcharTO(x,y,c) do{ gfx_goto(x,y); gfx_putchar(c); }while(0)
     45#include "ee.h"
    6746
    6847/*
     
    165144} game;
    166145
    167 #define BLACK 1
    168 #define GREEN 2
    169 #define YELLOW 3
    170 #define WHITE 4
    171 #define RED 5
    172 #define GRAY 6
    173 #define LIGHTGRAY 7
    174 #define BLUE 8
    175 #define CYAN 9
    176 #define MAGENTA 10
    177 
    178146/*
    179147 * From aliens.c
     
    220188
    221189/*
    222  * From graphics.c
    223  */
    224 int init_graphics( void );
    225 void init_game( game *g );
    226 char get_key( void );
    227 void clear_graphics( game *g );
    228 void refresh_graphics( void );
    229 void end_graphics( void );
    230 
    231 /*
    232190 * From math.c
    233191 */
Note: See TracChangeset for help on using the changeset viewer.