Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::component::node::Debug Class Reference

Show various visual debugging information about the node. More...

#include <OxygenEngine/scene/component/node/debug.h>

Inheritance diagram for oe::component::node::Debug:
[legend]
Collaboration diagram for oe::component::node::Debug:
[legend]

Public Member Functions

 Debug (oe::scene::Node &node)
 
virtual void onUpdate (const double delta, const int8_t flags=0) override
 
- Public Member Functions inherited from oe::scene::NodeComponent
 NodeComponent (Node &entity)
 Constructor.
 
NodegetNode () const noexcept
 Get node bound to this component.
 
ManagergetSceneManager () const noexcept
 Get scene manager of the node bound to this component.
 
- Public Member Functions inherited from oe::component::EntityComponent< Node >
const std::string & getName () const
 

Public Attributes

bool show_bbox = true
 
glm::vec3 bbox_color
 
bool show_transform = true
 
float transform_line_length = 0.1f
 
int8_t match_flags = 0
 
- Public Attributes inherited from oe::component::Component
bool is_active = true
 Toggle to check if the Component is active, actual meaning heavily depends of the component type.
 

Additional Inherited Members

- Protected Member Functions inherited from oe::component::EntityComponent< Node >
 EntityComponent (Node &entity)
 
- Protected Attributes inherited from oe::component::EntityComponent< Node >
Node & _entity
 

Detailed Description

Show various visual debugging information about the node.

Note
You might prefer using oe::component::scene::Debug instead, which is more complete (show hierarchy though a GUI)

Constructor & Destructor Documentation

◆ Debug()

oe::component::node::Debug::Debug ( oe::scene::Node node)

Constructor

Parameters
nodeNode bound to this component

Member Function Documentation

◆ onUpdate()

virtual void oe::component::node::Debug::onUpdate ( const double  delta,
const int8_t  flags = 0 
)
overridevirtual
Parameters
delta
flags

Reimplemented from oe::component::Component.

Member Data Documentation

◆ bbox_color

glm::vec3 oe::component::node::Debug::bbox_color

Node's bounding box color

◆ match_flags

int8_t oe::component::node::Debug::match_flags = 0

Do not run update unless flags is same as this value

◆ show_bbox

bool oe::component::node::Debug::show_bbox = true

Show the node's bounding box

◆ show_transform

bool oe::component::node::Debug::show_transform = true

Show the node's transform as axis

◆ transform_line_length

float oe::component::node::Debug::transform_line_length = 0.1f

Axis length


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