Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.27 KB

File metadata and controls

43 lines (31 loc) · 1.27 KB

Component that provides debug information to be drawn for an Entity.

The position and scale of the element that will be drawn is relative to the Entity's TransformComponent.

Debug information can be:

  • text
  • line
  • sphere
  • box

The maximum length of the debug text and font (stored as putils::strings) defaults to 64, and can be adjusted by defining the KENGINE_DEBUG_GRAPHICS_TEXT_MAX_LENGTH macro.

Specs

Members

Constructors

Text

DebugGraphicsComponent(const char * text, unsigned int textSize, const char * font, const putils::Point3f & startPos, unsigned int color);

Line

DebugGraphicsComponent(const putils::Point3f & startPos, const putils::Point3f & endPos, float thickness, unsigned int color);

Sphere

DebugGraphicsComponent(const putils::Point3f & center, float radius, unsigned int color);

Box

DebugGraphicsComponent(const putils::Rect3f & box, unsigned int color);