diff options
| author | arngo <[email protected]> | 2022-01-20 23:17:53 -0500 |
|---|---|---|
| committer | arngo <[email protected]> | 2022-01-20 23:17:53 -0500 |
| commit | dc203ce664367fec050f7ad4f37076160d10d2a4 (patch) | |
| tree | 9c365133b3bd09b5700d7500fdee74c942c714f8 /mrblib/raylib.rb | |
| parent | 903461780d64927f0d7fad5209df3ac11ea17ae4 (diff) | |
| download | mruby-raylib-dc203ce664367fec050f7ad4f37076160d10d2a4.tar.gz mruby-raylib-dc203ce664367fec050f7ad4f37076160d10d2a4.zip | |
Vector2 class, Rectangle class, and more texture drawing functions
Diffstat (limited to 'mrblib/raylib.rb')
| -rw-r--r-- | mrblib/raylib.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
