37 return _display_region;
51 _update_interval = update_interval;
62 return _update_interval;
75 _text_pattern = text_pattern;
77 do_update(current_thread);
100 _clock_object = clock_object;
112 return _clock_object;
126 do_update(current_thread);
DisplayRegion * get_display_region() const
Returns the DisplayRegion that the meter has created to render itself into the window to setup_window...
void set_clock_object(ClockObject *clock_object)
Sets the clock that is used to determine the frame rate.
GraphicsOutput * get_window() const
Returns the GraphicsOutput that was passed to setup_window(), or NULL if setup_window() has not been ...
double get_update_interval() const
Returns the number of seconds that will elapse between updates to the frame rate indication.
ClockObject * get_clock_object() const
Returns the clock that is used to determine the frame rate.
static Thread * get_current_thread()
Returns a pointer to the currently-executing Thread object.
const string & get_text_pattern() const
Returns the sprintf() pattern that is used to format the text.
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...
void set_text_pattern(const string &text_pattern)
Sets 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.
void update()
You can call this to explicitly force the FrameRateMeter to update itself with the latest frame rate ...