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



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

def offset = self[:offset]

#offset=(v) ⇒ Object



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

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

#rotationObject



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

def rotation = self[:rotation]

#rotation=(v) ⇒ Object



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

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

#targetObject



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

def target = self[:target]

#target=(v) ⇒ Object



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

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

#with_offset(x, y) ⇒ Object



244
245
246
247
# File 'lib/raylib_helper.rb', line 244

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

#with_rotation(rotation) ⇒ Object



254
255
256
257
# File 'lib/raylib_helper.rb', line 254

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

#with_target(x, y) ⇒ Object



249
250
251
252
# File 'lib/raylib_helper.rb', line 249

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

#with_zoom(zoom) ⇒ Object



259
260
261
262
# File 'lib/raylib_helper.rb', line 259

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

#zoomObject



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

def zoom = self[:zoom]

#zoom=(v) ⇒ Object



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

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