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:
groogy 2010-11-16 08:10:47 +00:00
parent 07dd3de1d2
commit 53621f0726

View File

@ -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?