From 49037d3ce6a171a3b1128c2bac6edea22f80d282 Mon Sep 17 00:00:00 2001 From: realtradam Date: Sat, 22 Jan 2022 06:44:00 -0500 Subject: . --- mrblib/raylib.rb | 8 ++++---- src/raylib.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mrblib/raylib.rb b/mrblib/raylib.rb index a75f795..e3c99cb 100644 --- a/mrblib/raylib.rb +++ b/mrblib/raylib.rb @@ -48,7 +48,7 @@ module Raylib end - def draw_text(text:, x:, y:, font_size:, color:) + def draw_text(text:, x:, y:, font_size:, color: Rl::Color.new(255,255,255,255)) self._draw_text(text, x, y, font_size, color) end @@ -56,12 +56,12 @@ module Raylib self._draw_texture(texture, x, y, tint) end - def draw_texture_ex(texture:, pos:, rotation:, scale:, tint: Rl::Color.new(255,255,255,255)) + def draw_texture_ex(texture:, pos:, rotation: 0, scale: 1, tint: Rl::Color.new(255,255,255,255)) self._draw_texture_ex(texture, pos, rotation, scale, tint) end - def draw_texture_pro(texture:, source:, dest:, origin:, rotation:, tint: Rl::Color.new(255,255,255,255)) - self._draw_texture_pro(texture, source, dest, origin, rotation, tint) + def draw_texture_pro(texture:, source_rect:, dest_rect:, origin: Rl::Vector.new(0,0), rotation: 0, tint: Rl::Color.new(255,255,255,255)) + self._draw_texture_pro(texture, source_rect, dest_rect, origin, rotation, tint) end def keys_pressed diff --git a/src/raylib.c b/src/raylib.c index 5322aae..7158a3e 100644 --- a/src/raylib.c +++ b/src/raylib.c @@ -295,7 +295,7 @@ mrb_draw_texture_pro(mrb_state* mrb, mrb_value self) { mrb_value dest_rect_obj; mrb_float rotation; mrb_value tint_obj; - mrb_get_args(mrb, "oooofo", &texture_obj, &pos_obj, &source_rect_obj, &dest_rect_obj, &rotation, &tint_obj); + mrb_get_args(mrb, "oooofo", &texture_obj, &source_rect_obj, &dest_rect_obj, &pos_obj, &rotation, &tint_obj); Texture *texture_data = DATA_GET_PTR(mrb, texture_obj, &Texture_type, Texture); Vector2 *pos_data = DATA_GET_PTR(mrb, pos_obj, &Vector2_type, Vector2); -- cgit v1.2.3