diff options
| author | Andre Weissflog <floooh@gmail.com> | 2020-11-03 19:32:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-03 19:32:44 +0100 |
| commit | 9c92a951f20f31d5222901feeffcb9ed9dfdd42e (patch) | |
| tree | e3ec684ab2b6ef1dad7b0d6e412d0c58ce8cadfe /README.md | |
| parent | 8bd84d3bd9a12a27a6537fcc8c9de4e70812df50 (diff) | |
sokol_app.h: remaining drag'n'drop stuff for HTML5/WASM (#420)
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -6,7 +6,7 @@ Simple [STB-style](https://github.com/nothings/stb/blob/master/docs/stb_howto.txt) cross-platform libraries for C and C++, written in C. -[See what's new](#updates) (**27-Oct-2020** sokol_app.h emscripten: canvas id vs css selector bugfix) +[See what's new](#updates) (**03-Nov-2020** sokol_app.h: drag'n'drop support for HTML5/WASM) [Live Samples](https://floooh.github.io/sokol-html5/index.html) via WASM. @@ -438,6 +438,18 @@ Emulators](https://floooh.github.io/tiny8bit/) for more interesting usage exampl # Updates +- **03-Nov-2020**: sokol_app.h: the missing drag'n'drop support for HTML5/WASM + has been added. This adds two platform-specific functions + ```sapp_html5_get_dropped_file_size()``` and + ```sapp_html5_fetch_dropped_file()```. Please read the documentation + section in sokol_app.h under 'DRAG AND DROP SUPPORT' for addition + details and example code. Also consult the source code of the new + ```droptest-sapp``` sample for an example of how to load the content + of dropped files on the web and native platforms: + + https://floooh.github.io/sokol-html5/droptest-sapp.html + + - **27-Oct-2020**: I committed a bugfix for a longstanding WebGL canvas id versus css-selector confusion in the emscripten/WASM backend code in sokol_app.h. I think the fix should not require any changes in your code (because if |