aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2020-11-03 19:32:44 +0100
committerGitHub <noreply@github.com>2020-11-03 19:32:44 +0100
commit9c92a951f20f31d5222901feeffcb9ed9dfdd42e (patch)
treee3ec684ab2b6ef1dad7b0d6e412d0c58ce8cadfe /README.md
parent8bd84d3bd9a12a27a6537fcc8c9de4e70812df50 (diff)
sokol_app.h: remaining drag'n'drop stuff for HTML5/WASM (#420)
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 13 insertions, 1 deletions
diff --git a/README.md b/README.md
index 899827a3..b749c679 100644
--- a/README.md
+++ b/README.md
@@ -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