summaryrefslogtreecommitdiffhomepage
path: root/mrblib/raylib.rb
diff options
context:
space:
mode:
authorarngo <[email protected]>2022-01-15 18:49:26 -0500
committerarngo <[email protected]>2022-01-15 18:49:26 -0500
commit34e315e6edb9fca2c86df44b1ce071726000245d (patch)
treeac2ec9173e85855a04fed64f66de52f8e663ed9d /mrblib/raylib.rb
parentd8c7c6d3faac6c3cdbe5badbb1740fee4163ce15 (diff)
downloadmruby-raylib-34e315e6edb9fca2c86df44b1ce071726000245d.tar.gz
mruby-raylib-34e315e6edb9fca2c86df44b1ce071726000245d.zip
implement main loop
Diffstat (limited to 'mrblib/raylib.rb')
-rw-r--r--mrblib/raylib.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/mrblib/raylib.rb b/mrblib/raylib.rb
new file mode 100644
index 0000000..53dc28f
--- /dev/null
+++ b/mrblib/raylib.rb
@@ -0,0 +1,14 @@
+class Raylib
+ class << self
+ attr_accessor :main_loop
+
+ #def call_main_loop
+ # self.main_loop.call
+ #end
+
+ def window_open(&block)
+ self.main_loop = block
+ self.execute_main_loop
+ end
+ end
+end