Added a capped frame rate at 100 to demonstrate that the library also supports ruby-style methods.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1650 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
07dd3de1d2
commit
53621f0726
@ -2,6 +2,7 @@ require 'sfml/system'
|
||||
require 'sfml/window'
|
||||
|
||||
app = SFML::Window.new( SFML::VideoMode.new( 800, 600 ), "My Ruby SFML" )
|
||||
app.framerate = 100
|
||||
input = app.input
|
||||
|
||||
while app.open?
|
||||
|
Loading…
Reference in New Issue
Block a user