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
705 |
# File 'lib/raylib_main.rb', line 705 def fovy = self[:fovy] |
#fovy=(v) ⇒ Object
706 |
# File 'lib/raylib_main.rb', line 706 def fovy=(v) self[:fovy] = v end |
#position ⇒ Object
699 |
# File 'lib/raylib_main.rb', line 699 def position = self[:position] |
#position=(v) ⇒ Object
700 |
# File 'lib/raylib_main.rb', line 700 def position=(v) self[:position] = v end |
#projection ⇒ Object
707 |
# File 'lib/raylib_main.rb', line 707 def projection = self[:projection] |
#projection=(v) ⇒ Object
708 |
# File 'lib/raylib_main.rb', line 708 def projection=(v) self[:projection] = v end |
#target ⇒ Object
701 |
# File 'lib/raylib_main.rb', line 701 def target = self[:target] |
#target=(v) ⇒ Object
702 |
# File 'lib/raylib_main.rb', line 702 def target=(v) self[:target] = v end |
#up ⇒ Object
703 |
# File 'lib/raylib_main.rb', line 703 def up = self[:up] |
#up=(v) ⇒ Object
704 |
# File 'lib/raylib_main.rb', line 704 def up=(v) self[:up] = v end |
#with_fovy(fovy) ⇒ Object
251 252 253 254 |
# File 'lib/raylib_helper.rb', line 251 def with_fovy(fovy) self[:fovy] = fovy self end |
#with_position(x, y, z) ⇒ Object
236 237 238 239 |
# File 'lib/raylib_helper.rb', line 236 def with_position(x, y, z) self[:position].set(x, y, z) self end |
#with_projection(projection) ⇒ Object
256 257 258 259 |
# File 'lib/raylib_helper.rb', line 256 def with_projection(projection) self[:projection] = projection self end |
#with_target(x, y, z) ⇒ Object
241 242 243 244 |
# File 'lib/raylib_helper.rb', line 241 def with_target(x, y, z) self[:target].set(x, y, z) self end |
#with_up(x, y, z) ⇒ Object
246 247 248 249 |
# File 'lib/raylib_helper.rb', line 246 def with_up(x, y, z) self[:up].set(x, y, z) self end |