|
0.45.0
|
#include <iLayerProfiler.h>
Inherits igor::iLayer.
Public Member Functions | |
| iLayerProfiler (iWindowPtr window, const iaString &name="Profiler", int32 zIndex=1000, iProfilerVerbosity verbosity=iProfilerVerbosity::FPSOnly) | |
| ~iLayerProfiler ()=default | |
| void | setVerbosity (iProfilerVerbosity verbosity) |
| void | cycleVerbosity () |
| iProfilerVerbosity | getVerbosity () |
Public Member Functions inherited from igor::iLayer | |
| iLayer (iWindowPtr window, const iaString &name="Layer", int32 zIndex=0) | |
| virtual | ~iLayer ()=default |
| virtual void | onInit () |
| virtual void | onDeinit () |
| virtual void | onUpdate () |
| virtual void | onEvent (iEvent &event) |
| const iaString & | getName () const |
| void | setName (const iaString &name) |
| int32 | getZIndex () const |
| iWindowPtr | getWindow () const |
layer that shows profiler and debug information
| igor::iLayerProfiler::iLayerProfiler | ( | iWindowPtr | window, |
| const iaString & | name = "Profiler", |
||
| int32 | zIndex = 1000, |
||
| iProfilerVerbosity | verbosity = iProfilerVerbosity::FPSOnly |
||
| ) |
ctor initializes layer
!!! set high zIndex so this layer can exclude it self from profiling !!!
| window | the given window |
| name | the name of this layer |
| zIndex | the z index |
| verbosity | the profiler verbosity |
|
default |
does nothing
| void igor::iLayerProfiler::cycleVerbosity | ( | ) |
cycles verbosity
| iProfilerVerbosity igor::iLayerProfiler::getVerbosity | ( | ) |
| void igor::iLayerProfiler::setVerbosity | ( | iProfilerVerbosity | verbosity | ) |
sets profiler verbosity
| verbosity | the verbosity of the profiler visualization |