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



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

def offset = self[:offset]

#offset=(v) ⇒ Object



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

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

#rotationObject



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

def rotation = self[:rotation]

#rotation=(v) ⇒ Object



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

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

#targetObject



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

def target = self[:target]

#target=(v) ⇒ Object



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

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

#with_offset(x, y) ⇒ Object



216
217
218
219
# File 'lib/raylib_helper.rb', line 216

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

#with_rotation(rotation) ⇒ Object



226
227
228
229
# File 'lib/raylib_helper.rb', line 226

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

#with_target(x, y) ⇒ Object



221
222
223
224
# File 'lib/raylib_helper.rb', line 221

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

#with_zoom(zoom) ⇒ Object



231
232
233
234
# File 'lib/raylib_helper.rb', line 231

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

#zoomObject



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

def zoom = self[:zoom]

#zoom=(v) ⇒ Object



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

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