Mercurial > MadButterfly
view src/X_supp.h @ 159:b90abd31a281
Postponse free of coords, shapes, and paints when the rdman is dirty.
- Life-cycle of shapes and paints are managed by rdman.
- Add redraw_man_t::free_objs to collect objects their freeing are
postonsed.
Know Issue:
- Bullet of tank are not removed from screen when it is go out the range
of the map.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 05 Oct 2008 23:32:58 +0800 |
parents | 6a8588df68af |
children |
line wrap: on
line source
#ifndef __X_SUPP_H_ #define __X_SUPP_H_ #include <X11/Xlib.h> #include "mb_types.h" #include "mb_timer.h" #include "redraw_man.h" /*! \ingroup xkb * @{ */ typedef struct _X_kb_info X_kb_info_t; struct _X_kb_event { event_t event; int keycode; int sym; }; typedef struct _X_kb_event X_kb_event_t; /* @} */ typedef struct _X_MB_runtime X_MB_runtime_t; extern void X_MB_handle_connection(X_MB_runtime_t *rt); extern X_MB_runtime_t *X_MB_new(const char *display_name, int w, int h); extern void X_MB_free(X_MB_runtime_t *xmb_rt); extern subject_t *X_MB_kbevents(X_MB_runtime_t *xmb_rt); extern redraw_man_t *X_MB_rdman(X_MB_runtime_t *xmb_rt); extern mb_tman_t *X_MB_tman(X_MB_runtime_t *xmb_rt); extern ob_factory_t *X_MB_ob_factory(X_MB_runtime_t *xmb_rt); #endif