summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.c
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-02-05 02:50:11 -0500
committerrealtradam <[email protected]>2022-02-05 02:50:11 -0500
commitdab2484365ef384a88a0f43e979c1d840318711d (patch)
treea25fee7e03341c63e6cfc704dbd6925df06c08cb /src/raylib.c
parent1efc0942ebc13c9bb7eddeb38be150a1b11ab49b (diff)
downloadmruby-raylib-dab2484365ef384a88a0f43e979c1d840318711d.tar.gz
mruby-raylib-dab2484365ef384a88a0f43e979c1d840318711d.zip
doesnt work pepehands
Diffstat (limited to 'src/raylib.c')
-rw-r--r--src/raylib.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/raylib.c b/src/raylib.c
index 36b4550..120802c 100644
--- a/src/raylib.c
+++ b/src/raylib.c
@@ -20,9 +20,6 @@ void helper_music_free(mrb_state*, void*);
bool check_collision_circle_rec(mrb_state* mrb, mrb_value circle_obj, mrb_value rec_obj);
-static const struct mrb_data_type Color_type = {
- "Color", mrb_free
-};
static const struct mrb_data_type Texture_type = {
"Texture", helper_texture_free
@@ -850,14 +847,6 @@ mrb_end_drawing(mrb_state* mrb, mrb_value self) {
return mrb_nil_value();
}
-static mrb_value
-mrb_clear_background(mrb_state* mrb, mrb_value self) {
- mrb_value color_obj;
- mrb_get_args(mrb, "o", &color_obj);
- Color *color_data = DATA_GET_PTR(mrb, color_obj, &Color_type, Color);
- ClearBackground(*color_data);
- return mrb_nil_value();
-}
static mrb_value
mrb_call_main_loop(mrb_state* mrb, mrb_value self) {
@@ -1014,7 +1003,6 @@ mrb_mruby_raylib_gem_init(mrb_state* mrb) {
mrb_define_module_function(mrb, raylib, "_draw_text", mrb_draw_text, MRB_ARGS_OPT(5));
mrb_define_module_function(mrb, raylib, "begin_drawing", mrb_begin_drawing, MRB_ARGS_NONE());
mrb_define_module_function(mrb, raylib, "end_drawing", mrb_end_drawing, MRB_ARGS_NONE());
- mrb_define_module_function(mrb, raylib, "clear_background", mrb_clear_background, MRB_ARGS_REQ(1));
mrb_define_module_function(mrb, raylib, "call_main_loop", mrb_call_main_loop, MRB_ARGS_NONE());
mrb_define_module_function(mrb, raylib, "target_fps=", mrb_target_fps, MRB_ARGS_REQ(1));
mrb_define_module_function(mrb, raylib, "fps", mrb_fps, MRB_ARGS_NONE());