aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2022-04-12 18:31:49 +0200
committerAndre Weissflog <floooh@gmail.com>2022-04-12 18:31:49 +0200
commitcc13a1e0cb9901b85fa58bcfc35aca178ba7d85d (patch)
tree027fabbf4a5a17bde2492fbf89206087ca62e7dd
parenta18031313cdf7dab461baa296c38b07337ab4d47 (diff)
sokol_fontstash.h: fix documentation (fixes #652)
-rw-r--r--util/sokol_fontstash.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/sokol_fontstash.h b/util/sokol_fontstash.h
index 03b3294c..2f474641 100644
--- a/util/sokol_fontstash.h
+++ b/util/sokol_fontstash.h
@@ -88,7 +88,7 @@
--- finally on application shutdown, call:
- sfons_shutdown()
+ sfons_destroy(FONScontext* ctx)
before sgl_shutdown() and sg_shutdown()
@@ -96,7 +96,7 @@
WHAT HAPPENS UNDER THE HOOD:
============================
- sfons_create():
+ FONScontext* sfons_create(int width, int height, int flags):
- creates a sokol-gfx shader compatible with sokol-gl
- creates an sgl_pipeline object with alpha-blending using
this shader
@@ -122,12 +122,12 @@
all calls to fonsDrawText() will be merged into a single draw call
as long as all calls use the same FONScontext
- sfons_flush():
+ sfons_flush(FONScontext* ctx):
- this will call sg_update_image() on the font atlas texture
if fontstash.h has added any rasterized glyphs since the last
frame
- sfons_shutdown():
+ sfons_destroy(FONScontext* ctx):
- destroy the font atlas texture, sgl_pipeline and sg_shader objects
LICENSE