Class: Raylib::Camera3D

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/raylib_main.rb,
lib/raylib_helper.rb

Overview

Camera helper

Instance Method Summary collapse

Instance Method Details

#fovyObject



701
# File 'lib/raylib_main.rb', line 701

def fovy = self[:fovy]

#fovy=(v) ⇒ Object



702
# File 'lib/raylib_main.rb', line 702

def fovy=(v) self[:fovy] = v end

#positionObject



695
# File 'lib/raylib_main.rb', line 695

def position = self[:position]

#position=(v) ⇒ Object



696
# File 'lib/raylib_main.rb', line 696

def position=(v) self[:position] = v end

#projectionObject



703
# File 'lib/raylib_main.rb', line 703

def projection = self[:projection]

#projection=(v) ⇒ Object



704
# File 'lib/raylib_main.rb', line 704

def projection=(v) self[:projection] = v end

#targetObject



697
# File 'lib/raylib_main.rb', line 697

def target = self[:target]

#target=(v) ⇒ Object



698
# File 'lib/raylib_main.rb', line 698

def target=(v) self[:target] = v end

#upObject



699
# File 'lib/raylib_main.rb', line 699

def up = self[:up]

#up=(v) ⇒ Object



700
# File 'lib/raylib_main.rb', line 700

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