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

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.