diff options
| author | _Tradam <[email protected]> | 2022-04-05 16:02:38 -0400 |
|---|---|---|
| committer | _Tradam <[email protected]> | 2022-04-05 16:02:38 -0400 |
| commit | 7296393f62ce4967041f126cd2260557e7e00f3c (patch) | |
| tree | 15b39e09fd8e2c52beda525b3c11c4a444def2e2 /mrblib/core.rb | |
| parent | 3a559960526ee7a9c59bfdef48699cf4880e1e7d (diff) | |
| download | mruby-raylib-7296393f62ce4967041f126cd2260557e7e00f3c.tar.gz mruby-raylib-7296393f62ce4967041f126cd2260557e7e00f3c.zip | |
autogenned
Diffstat (limited to 'mrblib/core.rb')
| -rw-r--r-- | mrblib/core.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/mrblib/core.rb b/mrblib/core.rb deleted file mode 100644 index 21960c0..0000000 --- a/mrblib/core.rb +++ /dev/null @@ -1,30 +0,0 @@ -module Raylib - class Vector2 - class << self - # A vector initialized to (0,0). Useful when dont care about the vector - # value but you still need to pass it into a function/method and dont want - # to initialize a new one many times. - def default - @default ||= self.new(0, 0) - end - end - end - class << self - # The code block version of {Raylib.begin_scissor_mode} and {Raylib.end_scissor_mode} - # @overload scissor_mode(x: 0, y: 0, width: 10, height: 10, &block) - # @param x [Integer] - # @param y [Integer] - # @param width [Integer] - # @param height [Integer] - # @param block [Proc] The code to be executed in the scissor mode - def scissor_mode(*args, x: 0, y: 0, width: 10, height: 10, &block) - if args.length == 4 - self.begin_scissor_mode(args[0], args[1], args[2], args[3]) - else - self.begin_scissor_mode(x: x, y: y, width: width, height: height) - end - yield - self.end_scissor_mode - end - end -end |
