29#ifndef __OverlayProfileSessionListener_H__
30#define __OverlayProfileSessionListener_H__
89 uint fontSize,
const String& caption,
bool show =
true);
93 const String& materialName,
bool show =
true);
#define _OgreOverlayExport
A 2D element which contains other OverlayElement instances.
Abstract definition of a 2D element to be displayed in an Overlay.
Represents a layer which is rendered on top of the 'normal' scene contents.
Represents an individual profile call.
ProfileSessionListener should be used to visualize profile results.
virtual void initializeSession()
OverlayProfileSessionListener()
Real getOverlayHeight() const
OverlayContainer * mProfileGui
The window that displays the profiler results.
Real mGuiTop
The vertical position of the stats window.
Real getOverlayWidth() const
Real mGuiWidth
The width of the stats window.
OverlayElement * createPanel(const String &name, Real width, Real height, Real top, Real left, const String &materialName, bool show=true)
An internal function to create a panel.
Real mBarHeight
The height of each bar.
Real getOverlayTop() const
virtual void changeEnableState(bool enabled)
virtual void finializeSession()
OverlayElement * createTextArea(const String &name, Real width, Real height, Real top, Real left, uint fontSize, const String &caption, bool show=true)
An internal function to create a text area.
ProfileBarList mProfileBars
Holds the display bars for each profile results.
Real mGuiLeft
The horz position of the stats window.
Real mBarSpacing
The distance between bars.
virtual void displayResults(const ProfileInstance &instance, ulong maxTotalFrameTime)
uint mMaxDisplayProfiles
The max number of profiles we can display.
Real getOverlayLeft() const
Real mBarLineWidth
The width of the min, avg, and max lines in a profile display.
Overlay * mOverlay
The overlay which contains our profiler results display.
OverlayContainer * createContainer()
An internal function to create the container which will hold our display elements.
void displayResults(ProfileInstance *instance, ProfileBarList::const_iterator &bIter, Real &maxTimeMillisecs, Real &newGuiHeight, int &profileCount)
Prints the profiling results of each frame.
Real mGuiHeight
The height of the stats window.
Real mBarIndent
The size of the indent for each profile display bar.
list< OverlayElement * >::type ProfileBarList
void setOverlayPosition(Real left, Real top)
Set the position of the profiler overlay, in pixels.
void setOverlayDimensions(Real width, Real height)
Set the size of the profiler overlay, in pixels.
virtual ~OverlayProfileSessionListener()
Real mGuiBorderWidth
The width of the border between the profile window and each bar.
float Real
Software floating point type.