diff options
| author | realtradam <[email protected]> | 2022-02-09 06:48:37 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-02-09 06:48:37 -0500 |
| commit | aaed2a48f4565862aed1694e68105f1a06ebd3c8 (patch) | |
| tree | a4314b0f3f4458be508451cde6092bc4e086bb84 /mrblib | |
| parent | 42b452cabe2b7ae6651891616d4d13030c018492 (diff) | |
| download | mruby-raylib-aaed2a48f4565862aed1694e68105f1a06ebd3c8.tar.gz mruby-raylib-aaed2a48f4565862aed1694e68105f1a06ebd3c8.zip | |
rewrite of texture drawing methods
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/core.rb | 7 | ||||
| -rw-r--r-- | mrblib/shapes.rb | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/mrblib/core.rb b/mrblib/core.rb index 8f93772..3b64622 100644 --- a/mrblib/core.rb +++ b/mrblib/core.rb @@ -1,4 +1,11 @@ module Raylib + class Vector2 + class << self + 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) diff --git a/mrblib/shapes.rb b/mrblib/shapes.rb new file mode 100644 index 0000000..94c4bf1 --- /dev/null +++ b/mrblib/shapes.rb @@ -0,0 +1,2 @@ +module Raylib +end |
