Module: Lotu::Drawable::InstanceMethods
- Defined in:
- lib/lotu/behaviors/drawable.rb
Instance Method Summary collapse
Instance Method Details
#draw ⇒ Object
18 19 20 |
# File 'lib/lotu/behaviors/drawable.rb', line 18 def draw @_image.draw(@x,@y,0) end |
#init_behavior ⇒ Object
8 9 10 11 |
# File 'lib/lotu/behaviors/drawable.rb', line 8 def init_behavior super @_image = nil end |
#set_image(image) ⇒ Object
13 14 15 16 |
# File 'lib/lotu/behaviors/drawable.rb', line 13 def set_image(image) @_image = $window.image(image) $window.register_for_draw(self) end |