summaryrefslogtreecommitdiff
path: root/sdl2/bindings
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-05-12 14:39:20 -0400
committerDavid Thompson <dthompson2@worcester.edu>2020-05-12 14:39:20 -0400
commit0cf4e680bb5d72a58df86b989a3b10c1c0ec4d23 (patch)
tree73dcd99e1271e108f30eff8376c6dc725621b17c /sdl2/bindings
parentdae8466030776f9e3afa851122705baaf09071a9 (diff)
ttf: Add TTF_GlyphMetrics binding.
Thanks to Gerry Agbobada for requesting this and sending an initial patch.
Diffstat (limited to 'sdl2/bindings')
-rw-r--r--sdl2/bindings/ttf.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/sdl2/bindings/ttf.scm b/sdl2/bindings/ttf.scm
index 9808fd4..fb3b717 100644
--- a/sdl2/bindings/ttf.scm
+++ b/sdl2/bindings/ttf.scm
@@ -57,6 +57,9 @@ RETURN-TYPE and accept arguments of ARG-TYPES."
(define-foreign ttf-font-height
int "TTF_FontHeight" '(*))
+(define-foreign ttf-glyph-metrics
+ int "TTF_GlyphMetrics" (list '* uint16 '* '* '* '* '*))
+
(define-foreign ttf-render-text-solid
'* "TTF_RenderText_Solid" (list '* '* sdl-color))