#include <DebugOverlays.hpp>
|
| OwnedBy (Engine &owner) |
| Constructor.
|
|
◆ DebugOverlays()
castor3d::DebugOverlays::DebugOverlays |
( |
Engine & | engine | ) |
|
|
explicit |
◆ beginFrame()
RenderInfo & castor3d::DebugOverlays::beginFrame |
( |
| ) |
|
Resets all frame counters.
- Returns
- The render infos.
◆ cleanup()
void castor3d::DebugOverlays::cleanup |
( |
| ) |
|
◆ dumpFrameTimes()
void castor3d::DebugOverlays::dumpFrameTimes |
( |
Parameters & | params | ) |
|
Fills the parameters with all passes times, in nanoseconds.
- Parameters
-
[in,out] | params | Receives the times. |
◆ endCpuTask()
void castor3d::DebugOverlays::endCpuTask |
( |
| ) |
|
Used to add to the GPU time, the time elapsed between now and the last call of either endGpuTask or endCpuTask.
◆ endFrame()
Updates the overlays texts.
- Parameters
-
[in] | first | Tells if this is the first pass. |
- Returns
- The elapsed time for this frame.
◆ endGpuTasks()
void castor3d::DebugOverlays::endGpuTasks |
( |
| ) |
|
◆ getAvgFrameTime()
◆ isShown()
bool castor3d::DebugOverlays::isShown |
( |
| ) |
const |
|
inline |
- Returns
- The debug overlays shown status.
◆ registerTimer()
void castor3d::DebugOverlays::registerTimer |
( |
castor::String const & | category, |
|
|
FramePassTimer & | timer ) |
Registers a render pass timer.
- Parameters
-
[in] | category | The timer category name. |
[in] | timer | The timer to register. |
◆ show()
void castor3d::DebugOverlays::show |
( |
bool | show | ) |
|
Show or hide debug overlays.
- Parameters
-
◆ unregisterTimer()
void castor3d::DebugOverlays::unregisterTimer |
( |
castor::String const & | category, |
|
|
FramePassTimer & | timer ) |
Unregisters a render pass timer.
- Parameters
-
[in] | category | The timer category name. |
[in] | timer | The timer to unregister. |
The documentation for this class was generated from the following file: