aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-02-13 13:23:54 +0100
committerAndre Weissflog <floooh@gmail.com>2019-02-13 13:23:54 +0100
commit6537e3ed151b7906fb0d84f05fe1ac740517c9cd (patch)
tree518af55369f95d54e0019bdb947a8ff41ee44306
parent7aa584f861f1dbf191b0d28277d710ae7f248957 (diff)
sokol_app.h: comment typos
-rw-r--r--sokol_app.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 8a22550d..25a512e0 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -144,18 +144,18 @@
All provided function callbacks will be called from the same thread,
but this may be different from the thread where sokol_main() was called.
- .init_cb (void (init_cb*)(void))
+ .init_cb (void (*init_cb)(void))
This function is called once after the application window,
3D rendering context and swap chain have been created. The
function takes no arguments and has no return value.
- .frame_cb (void (frame_cb*)(void))
+ .frame_cb (void (*frame_cb)(void))
This is the per-frame callback, which is usually called 60
times per second. This is where your application would update
most of its state and perform all rendering.
- .cleanup_cb (void (cleanup_cb*)(void))
+ .cleanup_cb (void (*cleanup_cb)(void))
The cleanup callback is called once right before the application
quits.
- .event_cb (void (event-cb*)(const sapp_event* event))
+ .event_cb (void (*event_cb)(const sapp_event* event))
The event callback is mainly for input handling, but in the
future may also be used to communicate other types of events
to the application. Keep the event_cb struct member zero-initialized
@@ -174,8 +174,9 @@
Likewise, returns the current height of the default framebuffer.
bool sapp_gles2(void)
- Returns true if as GLES2 or WebGL2 context had been created (for
- instance because GLES3/WebGL2 isn't available on the device)
+ Returns true if a GLES2 or WebGL context has been created. This
+ is useful when a GLES3/WebGL2 context was requested but is not
+ available so that sokol_app.h had to fallback to GLES2/WebGL.
const void* sapp_metal_get_device(void)
const void* sapp_metal_get_renderpass_descriptor(void)