From 3a559960526ee7a9c59bfdef48699cf4880e1e7d Mon Sep 17 00:00:00 2001 From: realtradam Date: Tue, 22 Feb 2022 13:26:34 -0500 Subject: method for drawing polygons --- src/types.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/types.c') diff --git a/src/types.c b/src/types.c index c1b3e34..8889f8a 100644 --- a/src/types.c +++ b/src/types.c @@ -50,3 +50,13 @@ const struct mrb_data_type NPatchInfo_type = { "NPatchInfo", mrb_free }; +const struct mrb_data_type Font_type = { + "Font", helper_font_free +}; + +void +helper_font_free(mrb_state* mrb, void*ptr) { + Font *font = (Font*)ptr; + UnloadFont(*font); + mrb_free(mrb, ptr); +} -- cgit v1.2.3