Class: Raylib::Camera2D

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

Overview

Camera2D, defines position/orientation in 2d space

Instance Method Summary collapse

Instance Method Details

#offsetObject



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

def offset = self[:offset]

#offset=(v) ⇒ Object



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

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

#rotationObject



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

def rotation = self[:rotation]

#rotation=(v) ⇒ Object



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

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

#targetObject



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

def target = self[:target]

#target=(v) ⇒ Object



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

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

#with_offset(x, y) ⇒ Object



263
264
265
266
# File 'lib/raylib_helper.rb', line 263

def with_offset(x, y)
  self[:offset].set(x, y)
  self
end

#with_rotation(rotation) ⇒ Object



273
274
275
276
# File 'lib/raylib_helper.rb', line 273

def with_rotation(rotation)
  self[:rotation] = rotation
  self
end

#with_target(x, y) ⇒ Object



268
269
270
271
# File 'lib/raylib_helper.rb', line 268

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

#with_zoom(zoom) ⇒ Object



278
279
280
281
# File 'lib/raylib_helper.rb', line 278

def with_zoom(zoom)
  self[:zoom] = zoom
  self
end

#zoomObject



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

def zoom = self[:zoom]

#zoom=(v) ⇒ Object



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

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