Ignore:
Timestamp:
Mar 6, 2006, 9:32:40 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • All output plugins should now work again.
  • Renamed caca_refresh() into caca_display() which makes more sense.
  • Optimised gl_bgpal by directly storing floats instead of doing the conversion at runtime.
  • Handle resizing in cucul_set_size() and try to keep as much information as possible from the previous canvas.
  • Moved most global variables into cucul_t or caca_t contexts.
  • Moved time.c into libcaca.
File:
1 edited

Legend:

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

    r524 r527  
    11/*
    22 *  libcaca       ASCII-Art library
    3  *  Copyright (c) 2002, 2003 Sam Hocevar <sam@zoy.org>
     3 *  Copyright (c) 2002-2006 Sam Hocevar <sam@zoy.org>
    44 *                All Rights Reserved
    55 *
     
    5050
    5151/* Timer structure */
    52 #define CACA_TIMER_INITIALIZER { 0, 0 }
    5352struct caca_timer
    5453{
     
    6867
    6968    unsigned int delay, rendertime;
     69    struct caca_timer timer;
     70    int lastticks;
     71
     72    struct events
     73    {
     74#if defined(USE_SLANG) || defined(USE_NCURSES)
     75        struct caca_timer key_timer;
     76        unsigned int last_key_ticks;
     77        unsigned int autorepeat_ticks;
     78        unsigned int last_key;
     79#endif
     80    } events;
    7081
    7182#if defined(USE_X11) && !defined(_DOXYGEN_SKIP_ME)
     
    8495        int font_offset;
    8596#if defined(HAVE_X11_XKBLIB_H)
    86         Bool detect_autorepeat;
     97        Bool autorepeat;
    8798#endif
    8899    } x11;
     100#endif
     101#if defined(USE_NCURSES)
     102    struct ncurses
     103    {
     104        int attr[16*16];
     105    } ncurses;
     106#endif
     107#if defined(USE_CONIO)
     108    struct conio
     109    {
     110        struct text_info ti;
     111        char *screen;
     112    } conio;
     113#endif
     114#if defined(USE_WIN32)
     115    struct win32
     116    {
     117        HANDLE hin, hout;
     118        HANDLE front, back;
     119        CHAR_INFO *buffer;
     120    } win32;
     121#endif
     122#if defined(USE_GL)
     123    struct gl
     124    {
     125        int window;
     126        unsigned int width, height;
     127        float font_width, font_height;
     128        float incx, incy;
     129        int id[94];
     130        unsigned char resized, bit;
     131        unsigned char mouse_changed, mouse_clicked;
     132        unsigned int mouse_x, mouse_y;
     133        unsigned int mouse_button, mouse_state;
     134
     135        unsigned char key;
     136        int special_key;
     137        int new_width;
     138        int new_height;
     139
     140        float sw, sh;
     141    } gl;
    89142#endif
    90143};
Note: See TracChangeset for help on using the changeset viewer.