30 return _display_region;
41 _update_interval = update_interval;
50 return _update_interval;
60 _text_pattern = text_pattern;
61 Thread *current_thread = Thread::get_current_thread();
62 do_update(current_thread);
79 _clock_object = clock_object;
98 Thread *current_thread = Thread::get_current_thread();
99 do_update(current_thread);
void set_clock_object(ClockObject *clock_object)
Sets the clock that is used to determine the frame rate.
DisplayRegion * get_display_region() const
Returns the DisplayRegion that the meter has created to render itself into the window to setup_window...
double get_update_interval() const
Returns the number of seconds that will elapse between updates to the frame rate indication.
GraphicsOutput * get_window() const
Returns the GraphicsOutput that was passed to setup_window(), or NULL if setup_window() has not been ...
A ClockObject keeps track of elapsed real time and discrete time.
This is a base class for the various different classes that represent the result of a frame of render...
const std::string & get_text_pattern() const
Returns the sprintf() pattern that is used to format the text.
A thread; that is, a lightweight process.
void set_update_interval(double update_interval)
Specifies the number of seconds that should elapse between updates to the frame rate indication.
A rectangular subregion within a window for rendering into.
ClockObject * get_clock_object() const
Returns the clock that is used to determine the frame rate.
void set_text_pattern(const std::string &text_pattern)
Sets the sprintf() pattern that is used to format the text.
void update()
You can call this to explicitly force the FrameRateMeter to update itself with the latest frame rate ...