Class: Moon::Sprite

Inherits:
Object show all
Defined in:
lib/moon/packages/std/sprite.rb

Instance Method Summary collapse

Instance Method Details

#hObject


7
8
9
# File 'lib/moon/packages/std/sprite.rb', line 7

def h
  clip_rect ? clip_rect.h : (texture ? texture.h : 0)
end

#wObject


3
4
5
# File 'lib/moon/packages/std/sprite.rb', line 3

def w
  clip_rect ? clip_rect.w : (texture ? texture.w : 0)
end