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
- #rotation ⇒ Object
- #rotation=(v) ⇒ Object
- #target ⇒ Object
- #zoom ⇒ Object
- #zoom=(v) ⇒ Object
Instance Method Details
#offset ⇒ Object
394 395 396 |
# File 'lib/raylib_helper.rb', line 394 def offset self[:offset] end |
#rotation ⇒ Object
402 403 404 |
# File 'lib/raylib_helper.rb', line 402 def rotation self[:rotation] end |
#rotation=(v) ⇒ Object
406 407 408 |
# File 'lib/raylib_helper.rb', line 406 def rotation=(v) self[:rotation] = v end |
#target ⇒ Object
398 399 400 |
# File 'lib/raylib_helper.rb', line 398 def target self[:target] end |
#zoom ⇒ Object
410 411 412 |
# File 'lib/raylib_helper.rb', line 410 def zoom self[:zoom] end |
#zoom=(v) ⇒ Object
414 415 416 |
# File 'lib/raylib_helper.rb', line 414 def zoom=(v) self[:zoom] = v end |