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.
- Reflectible
- Serializable
- Processed by graphics systems (such as the OpenGLSystem)
DebugGraphicsComponent(const char * text, unsigned int textSize, const char * font, const putils::Point3f & startPos, unsigned int color);DebugGraphicsComponent(const putils::Point3f & startPos, const putils::Point3f & endPos, float thickness, unsigned int color);DebugGraphicsComponent(const putils::Point3f & center, float radius, unsigned int color);DebugGraphicsComponent(const putils::Rect3f & box, unsigned int color);