mirror of
https://github.com/SFML/SFML.git
synced 2024-12-02 00:01:05 +08:00
a80339f668
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1681 4e206d99-4929-0410-ac5d-dfc041789085
12 lines
197 B
Ruby
12 lines
197 B
Ruby
require 'sfml/system'
|
|
require 'sfml/window'
|
|
require 'sfml/graphics'
|
|
|
|
class MyDrawable
|
|
include SFML::Drawable
|
|
end
|
|
|
|
drawable = MyDrawable.new
|
|
p drawable.position
|
|
p drawable.is_a?( SFML::Drawable )
|