summaryrefslogtreecommitdiffhomepage
path: root/mrblib/raylib.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-01-20 02:23:23 -0500
committerrealtradam <[email protected]>2022-01-20 02:23:23 -0500
commitced40dd6205b6c74101dc97d3f932870e7cb231b (patch)
tree07ea4f476087134db6cf0f9a5a5eb2a24ec5c980 /mrblib/raylib.rb
parent3e7084f7ec4f00fda1b2f63219b8ba94ca57dc04 (diff)
downloadmruby-raylib-ced40dd6205b6c74101dc97d3f932870e7cb231b.tar.gz
mruby-raylib-ced40dd6205b6c74101dc97d3f932870e7cb231b.zip
texture rendering
Diffstat (limited to 'mrblib/raylib.rb')
-rw-r--r--mrblib/raylib.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/mrblib/raylib.rb b/mrblib/raylib.rb
index fb45ad8..7c8f6c2 100644
--- a/mrblib/raylib.rb
+++ b/mrblib/raylib.rb
@@ -19,5 +19,9 @@ module Raylib
def draw_text(text:, x:, y:, font_size:, color:)
self._draw_text(text, x, y, font_size, color)
end
+
+ def draw_texture(texture:, x:, y:, tint: Rl::Color.new(255,255,255,255))
+ self._draw_texture(texture, x, y, tint)
+ end
end
end