diff options
| author | arngo <[email protected]> | 2022-01-15 18:49:26 -0500 |
|---|---|---|
| committer | arngo <[email protected]> | 2022-01-15 18:49:26 -0500 |
| commit | 34e315e6edb9fca2c86df44b1ce071726000245d (patch) | |
| tree | ac2ec9173e85855a04fed64f66de52f8e663ed9d /mrblib | |
| parent | d8c7c6d3faac6c3cdbe5badbb1740fee4163ce15 (diff) | |
| download | mruby-raylib-34e315e6edb9fca2c86df44b1ce071726000245d.tar.gz mruby-raylib-34e315e6edb9fca2c86df44b1ce071726000245d.zip | |
implement main loop
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/raylib.rb | 14 |
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 |
