SFML::Window now supports taking in Vector2 on methods where it would be relevant.
(Example: SFML::Window#cursor_position = [255, 255] ) Updated the demo file to show this in action. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1655 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
1c9e5ff5a2
commit
26883e3ab4
2 changed files with 44 additions and 41 deletions
|
@ -1,8 +1,9 @@
|
|||
require 'sfml/system'
|
||||
require 'sfml/window'
|
||||
|
||||
app = SFML::Window.new( SFML::VideoMode.new( 800, 600 ), "My Ruby SFML" )
|
||||
app = SFML::Window.new( [800, 600], "My Ruby SFML" )
|
||||
app.framerate = 100
|
||||
app.position = [300, 300]
|
||||
input = app.input
|
||||
|
||||
while app.open?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue