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



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

def fovy = self[:fovy]

#fovy=(v) ⇒ Object



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

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

#positionObject



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

def position = self[:position]

#position=(v) ⇒ Object



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

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

#projectionObject



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

def projection = self[:projection]

#projection=(v) ⇒ Object



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

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

#targetObject



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

def target = self[:target]

#target=(v) ⇒ Object



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

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

#upObject



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

def up = self[:up]

#up=(v) ⇒ Object



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

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

#with_fovy(fovy) ⇒ Object



204
205
206
207
# File 'lib/raylib_helper.rb', line 204

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

#with_position(x, y, z) ⇒ Object



189
190
191
192
# File 'lib/raylib_helper.rb', line 189

def with_position(x, y, z)
  self[:position].set(x, y, z)
  self
end

#with_projection(projection) ⇒ Object



209
210
211
212
# File 'lib/raylib_helper.rb', line 209

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

#with_target(x, y, z) ⇒ Object



194
195
196
197
# File 'lib/raylib_helper.rb', line 194

def with_target(x, y, z)
  self[:target].set(x, y, z)
  self
end

#with_up(x, y, z) ⇒ Object



199
200
201
202
# File 'lib/raylib_helper.rb', line 199

def with_up(x, y, z)
  self[:up].set(x, y, z)
  self
end