diff options
| author | realtradam <[email protected]> | 2022-02-22 13:26:34 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-02-22 13:26:34 -0500 |
| commit | 3a559960526ee7a9c59bfdef48699cf4880e1e7d (patch) | |
| tree | ac1d2021b54b822a52b4f3ef516e47ae9b9be22f /src/types.c | |
| parent | e06bb3f7ee54e67a5e2e54bdb0eeb886e52afe3c (diff) | |
| download | mruby-raylib-3a559960526ee7a9c59bfdef48699cf4880e1e7d.tar.gz mruby-raylib-3a559960526ee7a9c59bfdef48699cf4880e1e7d.zip | |
method for drawing polygonsdevelopment
Diffstat (limited to 'src/types.c')
| -rw-r--r-- | src/types.c | 10 |
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); +} |
