|
Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
|
Interface for objects with specialized rendering requirements. More...
#include <IDrawable.h>
Public Member Functions | |
| virtual void | draw () const =0 |
| Performs custom rendering for this object. | |
Public Member Functions inherited from IDrawable | |
| virtual | ~IDrawable ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
| virtual Shader * | getShader () const =0 |
| Gets the shader used to render this object. | |
| virtual Mesh * | getMesh () const =0 |
| Gets the mesh geometry for this object. | |
| virtual uint32_t | getObjectID () const =0 |
| Gets the unique identifier for this object. | |
Interface for objects with specialized rendering requirements.
Objects implementing this interface have full control over their rendering process. This is used for objects that:
Custom drawables bypass the instancing system and are rendered individually after all instanced objects.
Example usage:
Definition at line 181 of file IDrawable.h.
|
pure virtual |
Performs custom rendering for this object.
Implementations are responsible for:
This method is called after all instanced objects are rendered.
Implemented in Gizmo, Colliders, Forces, and PathTraces.