summaryrefslogtreecommitdiffhomepage
path: root/src/types.c
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-02-22 13:26:34 -0500
committerrealtradam <[email protected]>2022-02-22 13:26:34 -0500
commit3a559960526ee7a9c59bfdef48699cf4880e1e7d (patch)
treeac1d2021b54b822a52b4f3ef516e47ae9b9be22f /src/types.c
parente06bb3f7ee54e67a5e2e54bdb0eeb886e52afe3c (diff)
downloadmruby-raylib-development.tar.gz
mruby-raylib-development.zip
method for drawing polygonsdevelopment
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c10
1 files changed, 10 insertions, 0 deletions
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);
+}