aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2021-07-16 10:53:09 +0200
committerGitHub <noreply@github.com>2021-07-16 10:53:09 +0200
commit01b2916b071e20eff0e76ca717d7deb18869c553 (patch)
tree0e85160c7d54d70d2611ef9641196aab36c4a7f0
parent6af7379b31abf9b8ba5ee08d2241f7d04a96a70f (diff)
parent109a14a11223a01edbe606e6c1799c04676ca3a4 (diff)
Merge pull request #537 from geekynils/sokol-fetch_docs_fix
sokol_fetch docs fix
-rw-r--r--sokol_fetch.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sokol_fetch.h b/sokol_fetch.h
index a8c76315..9ff62d3d 100644
--- a/sokol_fetch.h
+++ b/sokol_fetch.h
@@ -118,9 +118,15 @@
}
}
- (4) finally, call sfetch_shutdown() at the end of the application:
+ (4) pump the sokol-fetch message queues, and invoke response callbacks
+ by calling:
- sfetch_shutdown()
+ sfetch_dowork();
+
+ In an event-driven app this should be called in the event loop. If you
+ use sokol-app this would be in your frame_cb function.
+
+ (5) finally, call sfetch_shutdown() at the end of the application:
There's many other loading-scenarios, for instance one doesn't have to
provide a buffer upfront, this can also happen in the response callback.