igor::iLayerProfiler Class Reference

#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 iaStringgetName () const
 
void setName (const iaString &name)
 
int32 getZIndex () const
 
iWindowPtr getWindow () const
 

Detailed Description

layer that shows profiler and debug information

Constructor & Destructor Documentation

◆ iLayerProfiler()

igor::iLayerProfiler::iLayerProfiler ( iWindowPtr  window,
const iaString name = "Profiler",
int32  zIndex = 1000,
iProfilerVerbosity  verbosity = iProfilerVerbosity::FPSOnly 
)

ctor initializes layer

Parameters
windowthe given window
namethe name of this layer
zIndexthe z index
verbositythe profiler verbosity

◆ ~iLayerProfiler()

igor::iLayerProfiler::~iLayerProfiler ( )
default

does nothing

Member Function Documentation

◆ cycleVerbosity()

void igor::iLayerProfiler::cycleVerbosity ( )

cycles verbosity

◆ getVerbosity()

iProfilerVerbosity igor::iLayerProfiler::getVerbosity ( )
Returns
current profiler verbosity

◆ setVerbosity()

void igor::iLayerProfiler::setVerbosity ( iProfilerVerbosity  verbosity)

sets profiler verbosity

Parameters
verbositythe verbosity of the profiler visualization

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