From dc203ce664367fec050f7ad4f37076160d10d2a4 Mon Sep 17 00:00:00 2001 From: arngo <27396817+arngo@users.noreply.github.com> Date: Thu, 20 Jan 2022 23:17:53 -0500 Subject: Vector2 class, Rectangle class, and more texture drawing functions --- mrblib/raylib.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mrblib') diff --git a/mrblib/raylib.rb b/mrblib/raylib.rb index 67d1b9e..9856e5b 100644 --- a/mrblib/raylib.rb +++ b/mrblib/raylib.rb @@ -30,6 +30,14 @@ 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)) + 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) + end + def keys_pressed if self.data_keys_pressed return self.data_keys_pressed -- cgit v1.2.3