diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby-raylib/core.h | 14 | ||||
| -rw-r--r-- | include/mruby-raylib/text.h | 12 | ||||
| -rw-r--r-- | include/mruby-raylib/textures.h | 11 | ||||
| -rw-r--r-- | include/mruby-raylib/types.h | 31 |
4 files changed, 0 insertions, 68 deletions
diff --git a/include/mruby-raylib/core.h b/include/mruby-raylib/core.h deleted file mode 100644 index c0e6815..0000000 --- a/include/mruby-raylib/core.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef MRUBY_RAYLIB_CORE_H -#define MRUBY_RAYLIB_CORE_H -#include "mruby-raylib/types.h" -#include <mruby/string.h> -#include <mruby/numeric.h> -#include <stdlib.h> -#if defined(PLATFORM_WEB) -#include <emscripten/emscripten.h> -#endif - -void mrb_init_raylib_core(mrb_state*); - -#endif /* end of include guard MRUBY_RAYLIB_CORE_H */ - diff --git a/include/mruby-raylib/text.h b/include/mruby-raylib/text.h deleted file mode 100644 index 19b7a8d..0000000 --- a/include/mruby-raylib/text.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef MRUBY_RAYLIB_TEXT_H -#define MRUBY_RAYLIB_TEXT_H -#include "mruby-raylib/types.h" -#include <raylib.h> -#include <mruby/string.h> -#include <mruby/numeric.h> -#include <stdlib.h> - -void mrb_init_raylib_text(mrb_state*); - -#endif /* end of include guard TEXT_H */ - diff --git a/include/mruby-raylib/textures.h b/include/mruby-raylib/textures.h deleted file mode 100644 index 2833117..0000000 --- a/include/mruby-raylib/textures.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef MRUBY_RAYLIB_TEXTURES_H -#define MRUBY_RAYLIB_TEXTURES_H -#include "mruby-raylib/types.h" -#include <raylib.h> -#include <mruby/string.h> -#include <mruby/numeric.h> -#include <stdlib.h> - -void mrb_init_raylib_textures(mrb_state*); - -#endif diff --git a/include/mruby-raylib/types.h b/include/mruby-raylib/types.h deleted file mode 100644 index 3052ec5..0000000 --- a/include/mruby-raylib/types.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef MRUBY_RAYLIB_TYPES_H -#define MRUBY_RAYLIB_TYPES_H -#include <mruby.h> -#include <mruby/data.h> - -#define PREWRAPSTRUCT(var_name, type, target) var_name = (type *)DATA_PTR(target) - -#define WRAPSTRUCT(type, mrb_type, target, var_name) \ - PREWRAPSTRUCT(var_name, type, target);\ - if(var_name) { mrb_free(mrb, var_name); }\ - mrb_data_init(target, NULL, &mrb_type);\ - var_name = (type *)mrb_malloc(mrb, sizeof(type));\ - -#define UNWRAPSTRUCT(type, mrb_type, target, var_name) var_name = DATA_GET_PTR(mrb, target, &mrb_type, type) - -extern const struct mrb_data_type Color_type; -extern const struct mrb_data_type Rectangle_type; -extern const struct mrb_data_type Texture_type; -extern const struct mrb_data_type Sound_type; -extern const struct mrb_data_type Music_type; -extern const struct mrb_data_type Vector2_type; -extern const struct mrb_data_type NPatchInfo_type; -extern const struct mrb_data_type Font_type; - -void helper_texture_free(mrb_state*, void*); -void helper_sound_free(mrb_state*, void*); -void helper_music_free(mrb_state*, void*); -void helper_font_free(mrb_state*, void*); - -#endif /* end of include guard MRUBY_RAYLIB_TYPES_H */ - |
