From aaed2a48f4565862aed1694e68105f1a06ebd3c8 Mon Sep 17 00:00:00 2001 From: realtradam Date: Wed, 9 Feb 2022 06:48:37 -0500 Subject: rewrite of texture drawing methods --- mrblib/core.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mrblib/core.rb') 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) -- cgit v1.2.3