|
OGRE
1.9.0
|
Concrete impl. More...
#include <OgreOverlayProfileSessionListener.h>

Public Types | |
| enum | DisplayMode { DISPLAY_PERCENTAGE , DISPLAY_MILLISECONDS } |
Public Member Functions | |
| OverlayProfileSessionListener () | |
| virtual | ~OverlayProfileSessionListener () |
| virtual void | changeEnableState (bool enabled) |
| virtual void | displayResults (const ProfileInstance &instance, ulong maxTotalFrameTime) |
| virtual void | finializeSession () |
| DisplayMode | getDisplayMode () const |
| Get the display mode for the overlay. | |
| Real | getOverlayHeight () const |
| Real | getOverlayLeft () const |
| Real | getOverlayTop () const |
| Real | getOverlayWidth () const |
| virtual void | initializeSession () |
| void | setDisplayMode (DisplayMode d) |
| Set the display mode for the overlay. | |
| void | setOverlayDimensions (Real width, Real height) |
| Set the size of the profiler overlay, in pixels. | |
| void | setOverlayPosition (Real left, Real top) |
| Set the position of the profiler overlay, in pixels. | |
Protected Attributes | |
| DisplayMode | mDisplayMode |
| How to display the overlay. | |
Private Types | |
| typedef list< OverlayElement * >::type | ProfileBarList |
Private Member Functions | |
| OverlayContainer * | createContainer () |
| An internal function to create the container which will hold our display elements. | |
| 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. | |
| 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. | |
| void | displayResults (ProfileInstance *instance, ProfileBarList::const_iterator &bIter, Real &maxTimeMillisecs, Real &newGuiHeight, int &profileCount) |
| Prints the profiling results of each frame. | |
Private Attributes | |
| Real | mBarHeight |
| The height of each bar. | |
| Real | mBarIndent |
| The size of the indent for each profile display bar. | |
| Real | mBarLineWidth |
| The width of the min, avg, and max lines in a profile display. | |
| Real | mBarSpacing |
| The distance between bars. | |
| Real | mGuiBorderWidth |
| The width of the border between the profile window and each bar. | |
| Real | mGuiHeight |
| The height of the stats window. | |
| Real | mGuiLeft |
| The horz position of the stats window. | |
| Real | mGuiTop |
| The vertical position of the stats window. | |
| Real | mGuiWidth |
| The width of the stats window. | |
| uint | mMaxDisplayProfiles |
| The max number of profiles we can display. | |
| Overlay * | mOverlay |
| The overlay which contains our profiler results display. | |
| ProfileBarList | mProfileBars |
| Holds the display bars for each profile results. | |
| OverlayContainer * | mProfileGui |
| The window that displays the profiler results. | |
Concrete impl.
of the ProfileSessionListener which visualizes the profling results using overlays.
Definition at line 48 of file OgreOverlayProfileSessionListener.h.
|
inherited |
| Enumerator | |
|---|---|
| DISPLAY_PERCENTAGE | Display % frame usage on the overlay. |
| DISPLAY_MILLISECONDS | Display milliseconds on the overlay. |
Definition at line 232 of file OgreProfiler.h.
|
inherited |
Get the display mode for the overlay.
Definition at line 262 of file OgreProfiler.h.
References mDisplayMode.
|
inherited |
Set the display mode for the overlay.
Definition at line 259 of file OgreProfiler.h.
References mDisplayMode.
|
protectedinherited |
How to display the overlay.
Definition at line 266 of file OgreProfiler.h.
Referenced by ProfileSessionListener(), getDisplayMode(), and setDisplayMode().
1.13.2