bx-lib : the Basic X11 Library tuned for C beginners
1.0
|
Functions | |
void | bx_init (void) |
void | bx_loop (void) |
void | bx_wait (unsigned long millisecs) |
void | bx_clean (void) |
void bx_init | ( | void | ) |
initialize the BX-lib (at the exclusion of optionnal audio support). This is the first function to call, usually in main (). No other BX function can be called before this initialisation.
void bx_loop | ( | void | ) |
enters the infinite loop handling window events. Note that you must not necessarily call this function. You can for example program an animation with an active drawing loop and call bx_canvas_show() each time the drawing of an animation step is complete, since bx_canvas_show() also handle pending window events.
void bx_wait | ( | unsigned long | millisecs | ) |
pauses for an amount of time. Window events are handled during this time.
millisecs | the time to wait in milliseconds |
void bx_clean | ( | void | ) |
clean the resources used by BX-lib when you finished using it.