Debug Draw 3D (and 2D) 1.4.5
Draw 3D debug graphics and 2D overlays with this add-on.
Loading...
Searching...
No Matches
DebugDraw2DFPSGraph Class Reference

This version of the graphs is automatically updated and displays FPS or Frametime. More...

#include <graphs.h>

Inheritance diagram for DebugDraw2DFPSGraph:
DebugDraw2DGraph

Public Member Functions

virtual void set_data_getter (const Callable &_callable) override
 
void set_frame_time_mode (const bool _state)
 
bool is_frame_time_mode () const
 
- Public Member Functions inherited from DebugDraw2DGraph
StringName get_title () const
 
void set_enabled (const bool _state)
 
bool is_enabled () const
 
void set_upside_down (const bool _state)
 
bool is_upside_down () const
 
void set_show_title (const bool _state)
 
bool is_show_title () const
 
void set_show_text_flags (const BitField< TextFlags > _flags)
 
BitField< TextFlagsget_show_text_flags () const
 
void set_size (const Vector2i &_size)
 
Vector2i get_size () const
 
void set_buffer_size (const int _buf_size)
 
int get_buffer_size () const
 
void set_offset (const Vector2i &_offset)
 
Vector2i get_offset () const
 
void set_corner (const GraphPosition _position)
 
GraphPosition get_corner () const
 
void set_line_width (const real_t _width)
 
real_t get_line_width () const
 
void set_line_color (const Color &_new_color)
 
Color get_line_color () const
 
void set_background_color (const Color &_new_color)
 
Color get_background_color () const
 
void set_border_color (const Color &_new_color)
 
Color get_border_color () const
 
void set_text_suffix (const String &_suffix)
 
String get_text_suffix () const
 
void set_custom_font (const Ref< Font > _custom_font)
 
Ref< Font > get_custom_font () const
 
void set_title_size (const int _size)
 
int get_title_size () const
 
void set_text_size (const int _size)
 
int get_text_size () const
 
void set_title_color (const Color &_new_color)
 
Color get_title_color () const
 
void set_text_color (const Color &_new_color)
 
Color get_text_color () const
 
void set_text_precision (const int _precision)
 
int get_text_precision () const
 
void set_parent_graph (const StringName &_graph)
 
StringName get_parent_graph () const
 
void set_parent_graph_side (const GraphSide _side)
 
GraphSide get_parent_graph_side () const
 
Callable get_data_getter () const
 
void set_parent (const StringName &_name, const GraphSide _side=GraphSide::SIDE_BOTTOM)
 

Additional Inherited Members

- Public Types inherited from DebugDraw2DGraph
enum  GraphPosition : int {
  POSITION_LEFT_TOP = 0 ,
  POSITION_RIGHT_TOP = 1 ,
  POSITION_LEFT_BOTTOM = 2 ,
  POSITION_RIGHT_BOTTOM = 3 ,
  POSITION_MAX
}
 
enum  GraphSide : int {
  SIDE_LEFT = 0 ,
  SIDE_TOP = 1 ,
  SIDE_RIGHT = 2 ,
  SIDE_BOTTOM = 3 ,
  SIDE_MAX
}
 
enum  TextFlags : int64_t {
  TEXT_CURRENT = 1 << 0 ,
  TEXT_AVG = 1 << 1 ,
  TEXT_MAX = 1 << 2 ,
  TEXT_MIN = 1 << 3 ,
  TEXT_ALL = TEXT_CURRENT | TEXT_AVG | TEXT_MAX | TEXT_MIN
}
 

Detailed Description

This version of the graphs is automatically updated and displays FPS or Frametime.

Must be created via DebugDraw2D.create_fps_graph.

Member Function Documentation

◆ set_data_getter()

virtual void DebugDraw2DFPSGraph::set_data_getter ( const Callable & _callable)
overridevirtual

Not available for FPS Graph

Reimplemented from DebugDraw2DGraph.

◆ set_frame_time_mode()

void DebugDraw2DFPSGraph::set_frame_time_mode ( const bool _state)

Switching between Frametime and FPS display.


The documentation for this class was generated from the following file: