diff options
| author | _Tradam <[email protected]> | 2022-04-05 16:02:38 -0400 |
|---|---|---|
| committer | _Tradam <[email protected]> | 2022-04-05 16:02:38 -0400 |
| commit | 7296393f62ce4967041f126cd2260557e7e00f3c (patch) | |
| tree | 15b39e09fd8e2c52beda525b3c11c4a444def2e2 /src/types.c | |
| parent | 3a559960526ee7a9c59bfdef48699cf4880e1e7d (diff) | |
| download | mruby-raylib-7296393f62ce4967041f126cd2260557e7e00f3c.tar.gz mruby-raylib-7296393f62ce4967041f126cd2260557e7e00f3c.zip | |
autogenned
Diffstat (limited to 'src/types.c')
| -rw-r--r-- | src/types.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/types.c b/src/types.c deleted file mode 100644 index 8889f8a..0000000 --- a/src/types.c +++ /dev/null @@ -1,62 +0,0 @@ -#include "mruby-raylib/types.h" -#include <raylib.h> - -const struct mrb_data_type Color_type = { - "Color", mrb_free -}; - -const struct mrb_data_type Rectangle_type = { - "Rectangle", mrb_free -}; - -const struct mrb_data_type Texture_type = { - "Texture", helper_texture_free -}; - -void -helper_texture_free(mrb_state* mrb, void*ptr) { - Texture *texture = (Texture*)ptr; - UnloadTexture(*texture); - mrb_free(mrb, ptr); -} - -const struct mrb_data_type Sound_type = { - "Sound", helper_sound_free -}; - -void -helper_sound_free(mrb_state* mrb, void*ptr) { - Sound *sound = (Sound*)ptr; - UnloadSound(*sound); - mrb_free(mrb, ptr); -} - -const struct mrb_data_type Music_type = { - "Music", helper_music_free -}; - -void -helper_music_free(mrb_state* mrb, void*ptr) { - Music *music = (Music*)ptr; - UnloadMusicStream(*music); - mrb_free(mrb, ptr); -} - -const struct mrb_data_type Vector2_type = { - "Vector2", mrb_free -}; - -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); -} |
