Ignore:
Timestamp:
Mar 7, 2006, 10:17:35 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Polished the driver split a bit (still no events, except resize events), properly credited authors and documented a few things.
File:
1 edited

Legend:

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

    r539 r540  
    2121#define __CACA_INTERNALS_H__
    2222
     23#if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME)
     24#   include <inttypes.h>
     25#else
     26typedef unsigned char uint8_t;
     27typedef unsigned short uint16_t;
     28typedef unsigned int uint32_t;
     29#endif
     30
    2331#if defined(USE_GL)
    2432#   include <GL/glut.h>
     
    103111        unsigned int (* get_window_height) (caca_t *);
    104112        void (* display) (caca_t *);
    105         void (* handle_resize) (caca_t *);
     113        void (* handle_resize) (caca_t *, unsigned int *, unsigned int *);
    106114    } driver;
    107115
     
    125133    } events;
    126134
     135    /* FIXME: maybe this should go away */
    127136#if defined(USE_X11) && !defined(_DOXYGEN_SKIP_ME)
    128137    struct x11
     
    164173        HANDLE front, back;
    165174        CHAR_INFO *buffer;
     175        CONSOLE_CURSOR_INFO cci;
    166176    } win32;
    167177#endif
     
    189199};
    190200
    191 /* Initialisation functions */
    192 extern int _caca_init_graphics(caca_t *kk);
    193 extern int _caca_end_graphics(caca_t *kk);
    194 
    195201/* Timer functions */
    196202extern void _caca_sleep(unsigned int);
    197203extern unsigned int _caca_getticks(struct caca_timer *);
    198204
    199 /* Cached screen size */
    200 extern unsigned int _caca_width;
    201 extern unsigned int _caca_height;
    202 extern int _caca_resize;
    203 extern int _caca_resize_event;
    204 
    205205#endif /* __CACA_INTERNALS_H__ */
Note: See TracChangeset for help on using the changeset viewer.