mfb_update_events (#27)
* update documentation * Fix typo * Added some examples * changed window names * Minor fix * Added mfb_update_events to all platforms. Checked on Windows, X11 and Wayland
This commit is contained in:

committed by
Daniel Collin

parent
cdaa54f5d6
commit
0257a60419
@ -17,10 +17,15 @@ extern "C" {
|
||||
struct Window * mfb_open(const char *title, unsigned width, unsigned height);
|
||||
struct Window * mfb_open_ex(const char *title, unsigned width, unsigned height, unsigned flags);
|
||||
|
||||
// Update the display. Input buffer is assumed to be a 32-bit buffer of the size given in the open call
|
||||
// Will return a negative status if something went wrong or the user want to exit.
|
||||
// Update the display
|
||||
// Input buffer is assumed to be a 32-bit buffer of the size given in the open call
|
||||
// Will return a negative status if something went wrong or the user want to exit
|
||||
// Also updates the window events
|
||||
UpdateState mfb_update(struct Window *window, void *buffer);
|
||||
|
||||
// Only updates the window events
|
||||
UpdateState mfb_update_events(struct Window *window);
|
||||
|
||||
// Close the window
|
||||
void mfb_close(struct Window *window);
|
||||
|
||||
|
Reference in New Issue
Block a user