class
#include <engine/gizmos/gizmos.hpp>
Gizmo Class that describes a type of gizmo.
Public functions
- void draw(GizmosRenderer& renderer, DrawPhase phase, const glm::mat<4, 4, float, glm::packed_highp>& mvp) pure virtual
- Draws the gizmo to screen.
- auto decreaseLifespan(float delta) -> bool
- Decreases the time the gizmo has left before it is destroyed.
Public variables
- const uint32_t id
- Gizmo identifier.
-
std::vector<core::
ecs:: Entity> drawCameras - List of camera entities the gizmo will be drawn for. If empty, draws to all cameras.
Protected variables
Function documentation
bool cubos:: engine:: Gizmos:: Gizmo:: decreaseLifespan(float delta)
Decreases the time the gizmo has left before it is destroyed.
Parameters | |
---|---|
delta | Seconds since the last frame. |