diff options
| author | Tom Black <[email protected]> | 2015-12-25 23:18:53 -0600 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2015-12-25 23:18:53 -0600 |
| commit | cbfce01bce4bd082b238a378bb11868e76b4a6d6 (patch) | |
| tree | ebf8739fa6dd8d72332f1e8a12223627a47840d0 /lib | |
| parent | 4b4ceac1d95773f8c054cd04e287af9f65c29dec (diff) | |
| download | ruby2d-cbfce01bce4bd082b238a378bb11868e76b4a6d6.tar.gz ruby2d-cbfce01bce4bd082b238a378bb11868e76b4a6d6.zip | |
Store frame rate
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ruby2d/window.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ruby2d/window.rb b/lib/ruby2d/window.rb index a56e8d5..3f5dd1a 100644 --- a/lib/ruby2d/window.rb +++ b/lib/ruby2d/window.rb @@ -8,6 +8,7 @@ module Ruby2D @width, @height, @title = width, height, title @mouse_x = @mouse_y = 0 @fps_cap = fps + @fps = 0 @vsync = vsync @objects = [] @@ -27,6 +28,8 @@ module Ruby2D return @width when :height return @height + when :fps + return @fps when :mouse_x return @mouse_x when :mouse_y |
