mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
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