5#ifndef NIRT_I_GUI_PROFILER_HPP_INCLUDED
6#define NIRT_I_GUI_PROFILER_HPP_INCLUDED
8#include <nirtcpp/core/engine/IGUIElement.hpp>
30 virtual void firstPage(
bool includeOverview=
true) = 0;
34 virtual void nextPage(
bool includeOverview=
true) = 0;
Code-profiler. Please check the example in the Nirtcpp examples folder about how to use it.
Definition IProfiler.hpp:105
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
Base class of all GUI elements.
Definition IGUIElement.hpp:24
virtual void draw()
Draws the element and its children.
Definition IGUIElement.hpp:331
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.hpp:73
Font interface.
Definition IGUIFont.hpp:40
Element to display profiler information.
Definition IGUIProfiler.hpp:20
virtual bool getFrozen() const =0
Are updates currently frozen.
virtual void firstPage(bool includeOverview=true)=0
Show first page of profile data.
virtual IGUIFont * getActiveFont() const =0
Get the font which is used right now for drawing.
virtual void setOverrideFont(IGUIFont *font=0)=0
Sets another skin independent font.
virtual bool isDrawBackgroundEnabled() const =0
Checks if background drawing is enabled.
virtual void setFilters(nirt::u32 minCalls=0, nirt::u32 minTimeSum=0, nirt::f32 minTimeAverage=0.f, nirt::u32 minTimeMax=0)=0
Filters prevents data that doesn't achieve the conditions from being displayed.
IGUIProfiler(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle, IProfiler *profiler=NULL)
constructor
Definition IGUIProfiler.hpp:24
virtual void previousPage(bool includeOverview=true)=0
Show previous page of profile data.
virtual void setShowGroupsTogether(bool groupsTogether)=0
Try to show as many group-pages together as possible instead of showing at most one group per page.
virtual void setDrawBackground(bool draw)=0
Sets whether to draw the background. By default disabled,.
virtual void setFrozen(bool freeze)=0
Allows to freeze updates which makes it easier to read the numbers.
virtual void nextPage(bool includeOverview=true)=0
Show next page of profile data.
virtual IGUIFont * getOverrideFont(void) const =0
Gets the override font (if any)
virtual bool getShowGroupsTogether() const =0
Can several groups be displayed per page?
@ EGUIET_PROFILER
IGUIProfiler.
Definition EGUIElementTypes.hpp:95
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110