Ignore:
Timestamp:
Sep 27, 2008, 3:12:46 PM (11 years ago)
Author:
Sam Hocevar
Message:

Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.

File:
1 edited

Legend:

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

    r2305 r2821  
    2020typedef struct caca_timer caca_timer_t;
    2121typedef struct caca_privevent caca_privevent_t;
     22typedef struct caca_figfont caca_figfont_t;
    2223
    2324#if !defined(_DOXYGEN_SKIP_ME)
    2425#   define EVENTBUF_LEN 10
    2526#endif
     27
     28struct caca_frame
     29{
     30    /* Frame size */
     31    int width, height;
     32
     33    /* Cell information */
     34    uint32_t *chars;
     35    uint32_t *attrs;
     36
     37    /* Painting context */
     38    int x, y;
     39    int handlex, handley;
     40    uint32_t curattr;
     41
     42    /* Frame name */
     43    char *name;
     44};
     45
     46struct caca_canvas
     47{
     48    /* XXX: look at caca_set_canvas_boundaries() before adding anything
     49     * to this structure. The function is quite hacky. */
     50
     51    /* Frame information */
     52    int frame, framecount;
     53    struct caca_frame *frames;
     54
     55    /* Canvas management */
     56    int refcount;
     57    int autoinc;
     58    int (*resize_callback)(void *);
     59    void *resize_data;
     60
     61    /* Shortcut to the active frame information */
     62    int width, height;
     63    uint32_t *chars;
     64    uint32_t *attrs;
     65    uint32_t curattr;
     66
     67    /* FIGfont management */
     68    caca_figfont_t *ff;
     69};
    2670
    2771/* Graphics driver */
     
    105149struct caca_display
    106150{
    107     /* A link to our cucul canvas */
    108     cucul_canvas_t *cv;
     151    /* A link to our caca canvas */
     152    caca_canvas_t *cv;
    109153    int autorelease;
    110154
     
    169213};
    170214
     215/* Colour functions */
     216extern uint32_t _caca_attr_to_rgb24fg(uint32_t);
     217extern uint32_t _caca_attr_to_rgb24bg(uint32_t);
     218
     219/* Frames functions */
     220extern void _caca_save_frame_info(caca_canvas_t *);
     221extern void _caca_load_frame_info(caca_canvas_t *);
     222
    171223/* Internal timer functions */
    172224extern void _caca_sleep(int);
Note: See TracChangeset for help on using the changeset viewer.