aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-02-21 19:56:28 +0100
committerGitHub <noreply@github.com>2019-02-21 19:56:28 +0100
commit77c2b42e2ee26c86541dbf40acf6b99d0529d20d (patch)
tree2e8cd20a3d8320069e51578933377ee8df59d46b /README.md
parente125467e5e2b1ebb9bffedd64cf06f100431f87a (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.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 60ef446a..5c658f95 100644
--- a/README.md
+++ b/README.md
@@ -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.