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