From 77c2b42e2ee26c86541dbf40acf6b99d0529d20d Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Thu, 21 Feb 2019 19:56:28 +0100 Subject: 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 --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README.md') 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. -- cgit v1.2.3