14 #ifndef FRAMERATEMETER_H 15 #define FRAMERATEMETER_H 25 class GraphicsChannel;
48 INLINE
void set_update_interval(
double update_interval);
49 INLINE
double get_update_interval()
const;
51 INLINE
void set_text_pattern(
const std::string &text_pattern);
52 INLINE
const std::string &get_text_pattern()
const;
54 INLINE
void set_clock_object(
ClockObject *clock_object);
63 void do_update(
Thread *current_thread);
70 bool _show_milliseconds;
71 double _update_interval;
73 std::string _text_pattern;
76 PN_stdfloat _last_aspect_ratio;
85 static void init_type() {
86 TextNode::init_type();
88 TextNode::get_class_type());
91 return get_class_type();
93 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A lightweight class that represents a single element that may be timed and/or counted via stats.
A ClockObject keeps track of elapsed real time and discrete time.
void update()
Can be called after the TextNode has been fully configured, to force the node to recompute its text i...
This is a base class for the various different classes that represent the result of a frame of render...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A thread; that is, a lightweight process.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The primary interface to this module.
This is a special TextNode that automatically updates itself with the current frame rate.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A rectangular subregion within a window for rendering into.
TypeHandle is the identifier used to differentiate C++ class types.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.