Class: Raylib::Camera3D
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::Camera3D
- Defined in:
- lib/raylib_main.rb,
lib/raylib_helper.rb
Overview
Camera helper
Instance Method Summary collapse
- #fovy ⇒ Object
- #fovy=(v) ⇒ Object
- #position ⇒ Object
- #position=(v) ⇒ Object
- #projection ⇒ Object
- #projection=(v) ⇒ Object
- #target ⇒ Object
- #target=(v) ⇒ Object
- #up ⇒ Object
- #up=(v) ⇒ Object
- #with_fovy(fovy) ⇒ Object
- #with_position(x, y, z) ⇒ Object
- #with_projection(projection) ⇒ Object
- #with_target(x, y, z) ⇒ Object
- #with_up(x, y, z) ⇒ Object
Instance Method Details
#fovy ⇒ Object
698 |
# File 'lib/raylib_main.rb', line 698 def fovy = self[:fovy] |
#fovy=(v) ⇒ Object
699 |
# File 'lib/raylib_main.rb', line 699 def fovy=(v) self[:fovy] = v end |
#position ⇒ Object
692 |
# File 'lib/raylib_main.rb', line 692 def position = self[:position] |
#position=(v) ⇒ Object
693 |
# File 'lib/raylib_main.rb', line 693 def position=(v) self[:position] = v end |
#projection ⇒ Object
700 |
# File 'lib/raylib_main.rb', line 700 def projection = self[:projection] |
#projection=(v) ⇒ Object
701 |
# File 'lib/raylib_main.rb', line 701 def projection=(v) self[:projection] = v end |
#target ⇒ Object
694 |
# File 'lib/raylib_main.rb', line 694 def target = self[:target] |
#target=(v) ⇒ Object
695 |
# File 'lib/raylib_main.rb', line 695 def target=(v) self[:target] = v end |
#up ⇒ Object
696 |
# File 'lib/raylib_main.rb', line 696 def up = self[:up] |
#up=(v) ⇒ Object
697 |
# File 'lib/raylib_main.rb', line 697 def up=(v) self[:up] = v end |
#with_fovy(fovy) ⇒ Object
232 233 234 235 |
# File 'lib/raylib_helper.rb', line 232 def with_fovy(fovy) self[:fovy] = fovy self end |
#with_position(x, y, z) ⇒ Object
217 218 219 220 |
# File 'lib/raylib_helper.rb', line 217 def with_position(x, y, z) self[:position].set(x, y, z) self end |
#with_projection(projection) ⇒ Object
237 238 239 240 |
# File 'lib/raylib_helper.rb', line 237 def with_projection(projection) self[:projection] = projection self end |
#with_target(x, y, z) ⇒ Object
222 223 224 225 |
# File 'lib/raylib_helper.rb', line 222 def with_target(x, y, z) self[:target].set(x, y, z) self end |
#with_up(x, y, z) ⇒ Object
227 228 229 230 |
# File 'lib/raylib_helper.rb', line 227 def with_up(x, y, z) self[:up].set(x, y, z) self end |