summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-01-22 06:44:00 -0500
committerrealtradam <[email protected]>2022-01-22 06:44:00 -0500
commit49037d3ce6a171a3b1128c2bac6edea22f80d282 (patch)
tree8713060dae0ab2a00f60853a4ad989d07104511c /mrblib
parent4846d9f0121966c2dfb31dc0bf7e349ebfef3065 (diff)
downloadmruby-raylib-49037d3ce6a171a3b1128c2bac6edea22f80d282.tar.gz
mruby-raylib-49037d3ce6a171a3b1128c2bac6edea22f80d282.zip
.
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/raylib.rb8
1 files changed, 4 insertions, 4 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