X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fspecial%2Fframe_rate.h;h=646498d40526c8de2b5b1709081b0fca4414e5b9;hb=133d94d5b145f325c38c8c15c9ea561bfffb092d;hp=c5cd18edcc8a4f449e32e8950d3cc953d5854cce;hpb=2e973e2cf1dc2af448a0c27d067b00addb968538;p=supertux.git diff --git a/lib/special/frame_rate.h b/lib/special/frame_rate.h index c5cd18edc..646498d40 100644 --- a/lib/special/frame_rate.h +++ b/lib/special/frame_rate.h @@ -29,12 +29,15 @@ namespace SuperTux FrameRate(double fps); void start(); void set_fps(double fps); + void set_frame_limit(bool); double get(); void update(); + void smooth_hanger(); private: unsigned int last_update_time; unsigned int update_time; unsigned int frame_ms; + bool frame_limit; }; } //namespace SuperTux