소스 검색

sokol_fetch docs fix

The TL;DR instructions should also mention that you need to call sfetch_dowork().
Nils Bruenggel 4 년 전
부모
커밋
109a14a112
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 2
      sokol_fetch.h

+ 8 - 2
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
     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.
     provide a buffer upfront, this can also happen in the response callback.