Ignore:
Timestamp:
Nov 16, 2003, 4:20:17 PM (19 years ago)
Author:
Sam Hocevar
Message:
  • src/blit.c: + Added caca_set_dithering() (unused yet). + Added random dithering.
  • src/caca.h: + Renamed legacy EE_* enums to CACA_*.
  • examples/demo.c examples/caca.txt: + Added a default sprite for libcaca.
File:
1 edited

Legend:

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

    r192 r193  
    2222 */
    2323
    24 #ifndef __EE_H__
    25 #define __EE_H__
     24#ifndef __CACA_H__
     25#define __CACA_H__
    2626
    2727#ifdef __cplusplus
     
    3333 * Colors
    3434 */
    35 enum caca_colors
     35enum caca_color
    3636{
    37     EE_BLACK = 0,
    38     EE_BLUE = 1,
    39     EE_GREEN = 2,
    40     EE_CYAN = 3,
    41     EE_RED = 4,
    42     EE_MAGENTA = 5,
    43     EE_BROWN = 6,
    44     EE_LIGHTGRAY = 7,
    45     EE_DARKGRAY = 8,
    46     EE_LIGHTBLUE = 9,
    47     EE_LIGHTGREEN = 10,
    48     EE_LIGHTCYAN = 11,
    49     EE_LIGHTRED = 12,
    50     EE_LIGHTMAGENTA = 13,
    51     EE_YELLOW = 14,
    52     EE_WHITE = 15
     37    CACA_COLOR_BLACK = 0,
     38    CACA_COLOR_BLUE = 1,
     39    CACA_COLOR_GREEN = 2,
     40    CACA_COLOR_CYAN = 3,
     41    CACA_COLOR_RED = 4,
     42    CACA_COLOR_MAGENTA = 5,
     43    CACA_COLOR_BROWN = 6,
     44    CACA_COLOR_LIGHTGRAY = 7,
     45    CACA_COLOR_DARKGRAY = 8,
     46    CACA_COLOR_LIGHTBLUE = 9,
     47    CACA_COLOR_LIGHTGREEN = 10,
     48    CACA_COLOR_LIGHTCYAN = 11,
     49    CACA_COLOR_LIGHTRED = 12,
     50    CACA_COLOR_LIGHTMAGENTA = 13,
     51    CACA_COLOR_YELLOW = 14,
     52    CACA_COLOR_WHITE = 15
     53};
     54
     55/*
     56 * Dithering modes
     57 */
     58enum caca_dithering
     59{
     60    CACA_DITHER_NONE = 0,
     61    CACA_DITHER_RANDOM = 1
    5362};
    5463
     
    6372int caca_init(void);
    6473void caca_set_delay(unsigned int);
     74void caca_set_dithering(enum caca_dithering);
    6575unsigned int caca_get_rendertime(void);
    6676unsigned int caca_get_width(void);
     
    7282char caca_get_key(void);
    7383
    74 void caca_set_color(int);
    75 int caca_get_color(void);
     84void caca_set_color(enum caca_color);
     85enum caca_color caca_get_color(void);
    7686void caca_putchar(int, int, char);
    7787void caca_putstr(int, int, const char *);
     
    115125#endif
    116126
    117 #endif /* __EE_H__ */
     127#endif /* __CACA_H__ */
Note: See TracChangeset for help on using the changeset viewer.