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
721 |
# File 'lib/raylib_main.rb', line 721 def offset = self[:offset] |
#offset=(v) ⇒ Object
722 |
# File 'lib/raylib_main.rb', line 722 def offset=(v) self[:offset] = v end |
#rotation ⇒ Object
725 |
# File 'lib/raylib_main.rb', line 725 def rotation = self[:rotation] |
#rotation=(v) ⇒ Object
726 |
# File 'lib/raylib_main.rb', line 726 def rotation=(v) self[:rotation] = v end |
#target ⇒ Object
723 |
# File 'lib/raylib_main.rb', line 723 def target = self[:target] |
#target=(v) ⇒ Object
724 |
# File 'lib/raylib_main.rb', line 724 def target=(v) self[:target] = v end |
#with_offset(x, y) ⇒ Object
263 264 265 266 |
# File 'lib/raylib_helper.rb', line 263 def with_offset(x, y) self[:offset].set(x, y) self end |
#with_rotation(rotation) ⇒ Object
273 274 275 276 |
# File 'lib/raylib_helper.rb', line 273 def with_rotation(rotation) self[:rotation] = rotation self end |
#with_target(x, y) ⇒ Object
268 269 270 271 |
# File 'lib/raylib_helper.rb', line 268 def with_target(x, y) self[:target].set(x, y) self end |
#with_zoom(zoom) ⇒ Object
278 279 280 281 |
# File 'lib/raylib_helper.rb', line 278 def with_zoom(zoom) self[:zoom] = zoom self end |
#zoom ⇒ Object
727 |
# File 'lib/raylib_main.rb', line 727 def zoom = self[:zoom] |
#zoom=(v) ⇒ Object
728 |
# File 'lib/raylib_main.rb', line 728 def zoom=(v) self[:zoom] = v end |