Class: Ruby2D::Window

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby2d/camera.rb

Instance Method Summary collapse

Instance Method Details

#update(&aproc) ⇒ Object



130
131
132
133
# File 'lib/ruby2d/camera.rb', line 130

def update(&aproc)
  @update_proc = (aproc << proc { Ruby2D::Camera._redraw })
  true
end