summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-02-09 09:54:43 -0500
committerrealtradam <[email protected]>2022-02-09 09:54:43 -0500
commit96580c44bff6b466188b0e71d974829228e2fa88 (patch)
treedebd5839be1919439b3097a0a2d446355b206d81 /mrblib
parentaaed2a48f4565862aed1694e68105f1a06ebd3c8 (diff)
downloadmruby-raylib-96580c44bff6b466188b0e71d974829228e2fa88.tar.gz
mruby-raylib-96580c44bff6b466188b0e71d974829228e2fa88.zip
started work on text drawing methods
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/core.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/mrblib/core.rb b/mrblib/core.rb
index 3b64622..21960c0 100644
--- a/mrblib/core.rb
+++ b/mrblib/core.rb
@@ -1,6 +1,9 @@
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