Ignore:
Timestamp:
Nov 21, 2003, 3:34:07 PM (19 years ago)
Author:
Sam Hocevar
Message:
  • TODO: + A few updates.
  • src/blit.c: + Split blit() into caca_create_bitmap() and caca_draw_bitmap(). + Started removing hardcoded bitmask and pitch values.
  • examples/demo.c: + Do something with mouse clicks.
File:
1 edited

Legend:

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

    r199 r204  
    102102
    103103/*
    104  * Types
     104 * Internal types
    105105 */
    106106struct caca_sprite;
     107struct caca_bitmap;
    107108
    108109/*
    109  * Prototypes
     110 * Basic functions
    110111 */
    111112int caca_init(void);
     
    119120void caca_end(void);
    120121
     122/*
     123 * Events
     124 */
    121125int caca_get_event(void);
    122126
     127/*
     128 * Character graphics
     129 */
    123130void caca_set_color(enum caca_color);
    124131enum caca_color caca_get_color(void);
     
    128135void caca_clear(void);
    129136
     137/*
     138 * Graphics primitives
     139 */
    130140void caca_draw_line(int, int, int, int, char);
    131141void caca_draw_polyline(const int[], const int[], int, char);
     
    146156void caca_fill_triangle(int, int, int, int, int, int, char);
    147157
     158/*
     159 * Maths
     160 */
    148161int caca_rand(int, int);
    149162unsigned int caca_sqrt(unsigned int);
    150163
     164/*
     165 * Sprite handling
     166 */
    151167struct caca_sprite * caca_load_sprite(const char *);
    152168int caca_get_sprite_frames(struct caca_sprite *);
     
    158174void caca_free_sprite(struct caca_sprite *);
    159175
    160 void caca_blit(int, int, int, int, void *, int, int);
     176/*
     177 * Bitmap handling
     178 */
     179struct caca_bitmap *caca_create_bitmap(int, int, int, int, int, int, int);
     180void caca_draw_bitmap(int, int, int, int, struct caca_bitmap *, char *);
     181void caca_free_bitmap(struct caca_bitmap *);
    161182
    162183#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.