diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-02-21 19:56:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-21 19:56:28 +0100 |
| commit | 77c2b42e2ee26c86541dbf40acf6b99d0529d20d (patch) | |
| tree | 2e8cd20a3d8320069e51578933377ee8df59d46b /README.md | |
| parent | e125467e5e2b1ebb9bffedd64cf06f100431f87a (diff) | |
sokol_app.h/sokol_audio.h: add userdata support for callbacks (#120)
sokol_app.h and sokol_audio.h now have an alternative set of callbacks with user_data arguments. This is useful if you don't want or cannot store your own application state in global variables. See the header documentation in sokol_app.h and sokol_audio.h for details, and check out the samples *sapp/noentry-sapp.c* and *sapp/modplay-sapp.c* in https://github.com/floooh/sokol-samples
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -407,6 +407,13 @@ Mainly some "missing features" for desktop apps: # Updates +- **21-Feb-2019**: sokol_app.h and sokol_audio.h now have an alternative +set of callbacks with user_data arguments. This is useful if you don't +want or cannot store your own application state in global variables. +See the header documentation in sokol_app.h and sokol_audio.h for details, +and check out the samples *sapp/noentry-sapp.c* and *sapp/modplay-sapp.c* +in https://github.com/floooh/sokol-samples + - **19-Feb-2019**: sokol_app.h now has an alternative mode where it doesn't "hijack" the platform's main() function. Search for SOKOL_NO_ENTRY in sokol_app.h for details and documentation. |