summaryrefslogtreecommitdiffhomepage
path: root/mrblib/raylib.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-01-19 21:27:19 -0500
committerrealtradam <[email protected]>2022-01-19 21:27:19 -0500
commit6db687a1a43eda04e8131fa93a059e272a62f60f (patch)
tree48f829c947494a7b18544ff20b32a2aa0dc69e58 /mrblib/raylib.rb
parent0581a22d5a1e8364fd1685eb43c3078a438c74c5 (diff)
downloadmruby-raylib-6db687a1a43eda04e8131fa93a059e272a62f60f.tar.gz
mruby-raylib-6db687a1a43eda04e8131fa93a059e272a62f60f.zip
.
Diffstat (limited to 'mrblib/raylib.rb')
-rw-r--r--mrblib/raylib.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/mrblib/raylib.rb b/mrblib/raylib.rb
index 0f542c9..fb45ad8 100644
--- a/mrblib/raylib.rb
+++ b/mrblib/raylib.rb
@@ -1,3 +1,5 @@
+Rl = Raylib
+
module Raylib
class << self
attr_accessor :main_loop
@@ -13,8 +15,9 @@ module Raylib
end
end
- def test
- puts 'hello'
+
+ def draw_text(text:, x:, y:, font_size:, color:)
+ self._draw_text(text, x, y, font_size, color)
end
end
end