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
235 236 237 238 |
# File 'lib/raylib_helper.rb', line 235 def with_fovy(fovy) self[:fovy] = fovy self end |
#with_position(x, y, z) ⇒ Object
220 221 222 223 |
# File 'lib/raylib_helper.rb', line 220 def with_position(x, y, z) self[:position].set(x, y, z) self end |
#with_projection(projection) ⇒ Object
240 241 242 243 |
# File 'lib/raylib_helper.rb', line 240 def with_projection(projection) self[:projection] = projection self end |
#with_target(x, y, z) ⇒ Object
225 226 227 228 |
# File 'lib/raylib_helper.rb', line 225 def with_target(x, y, z) self[:target].set(x, y, z) self end |
#with_up(x, y, z) ⇒ Object
230 231 232 233 |
# File 'lib/raylib_helper.rb', line 230 def with_up(x, y, z) self[:up].set(x, y, z) self end |