Class: Raylib::Camera2D
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::Camera2D
- Defined in:
- lib/raylib_main.rb,
lib/raylib_helper.rb
Overview
Camera2D, defines position/orientation in 2d space
Instance Method Summary collapse
- #offset ⇒ Object
- #offset=(v) ⇒ Object
- #rotation ⇒ Object
- #rotation=(v) ⇒ Object
- #target ⇒ Object
- #target=(v) ⇒ Object
- #with_offset(x, y) ⇒ Object
- #with_rotation(rotation) ⇒ Object
- #with_target(x, y) ⇒ Object
- #with_zoom(zoom) ⇒ Object
- #zoom ⇒ Object
- #zoom=(v) ⇒ Object
Instance Method Details
#offset ⇒ Object
714 |
# File 'lib/raylib_main.rb', line 714 def offset = self[:offset] |
#offset=(v) ⇒ Object
715 |
# File 'lib/raylib_main.rb', line 715 def offset=(v) self[:offset] = v end |
#rotation ⇒ Object
718 |
# File 'lib/raylib_main.rb', line 718 def rotation = self[:rotation] |
#rotation=(v) ⇒ Object
719 |
# File 'lib/raylib_main.rb', line 719 def rotation=(v) self[:rotation] = v end |
#target ⇒ Object
716 |
# File 'lib/raylib_main.rb', line 716 def target = self[:target] |
#target=(v) ⇒ Object
717 |
# File 'lib/raylib_main.rb', line 717 def target=(v) self[:target] = v end |
#with_offset(x, y) ⇒ Object
247 248 249 250 |
# File 'lib/raylib_helper.rb', line 247 def with_offset(x, y) self[:offset].set(x, y) self end |
#with_rotation(rotation) ⇒ Object
257 258 259 260 |
# File 'lib/raylib_helper.rb', line 257 def with_rotation(rotation) self[:rotation] = rotation self end |
#with_target(x, y) ⇒ Object
252 253 254 255 |
# File 'lib/raylib_helper.rb', line 252 def with_target(x, y) self[:target].set(x, y) self end |
#with_zoom(zoom) ⇒ Object
262 263 264 265 |
# File 'lib/raylib_helper.rb', line 262 def with_zoom(zoom) self[:zoom] = zoom self end |
#zoom ⇒ Object
720 |
# File 'lib/raylib_main.rb', line 720 def zoom = self[:zoom] |
#zoom=(v) ⇒ Object
721 |
# File 'lib/raylib_main.rb', line 721 def zoom=(v) self[:zoom] = v end |