HUD class allows drawing information on top of tests. More...
#include <kanzi/core.ui/application/performance_info.hpp>
Public Member Functions | |
void | drawFps () |
Draws the FPS information on the screen. | |
void | drawInfo () |
Draws performance related information on the screen. | |
void | drawProfilingInfo () |
Draws profiling graphs. | |
PerformanceInfo (Domain *domain, KzuEngine *engine, ScreenSharedPtr screen, const PerformanceInfoProperties &properties) | |
Constructor. | |
PerformanceInfo (FrameTimeQueue &frameTimeQueue, Domain *domain, const PerformanceInfoProperties &properties) | |
Constructor for HUD. | |
void | setBorderColor (const ColorRGBA &borderColor) |
Sets the border color of the HUD info boxes. | |
void | setFontColor (const ColorRGBA &fontColor) |
Sets the font color for drawing the HUD info. | |
void | setLineColor (const ColorRGBA &lineColor) |
Sets the color of the lines used to draw the performance graphs. | |
void | setTextTopLeft (int x, int y) |
Set the text top-left corner position. | |
HUD class allows drawing information on top of tests.
|
explicit |
Constructor for HUD.
frameTimeQueue | The FrameTimeQueue from which to query the frame rate. |
domain | The Application Domain. |
properties | Properties for the PerformanceInfo HUD to construct. |
|
explicit |
Constructor.
void kanzi::PerformanceInfo::drawFps | ( | ) |
Draws the FPS information on the screen.
void kanzi::PerformanceInfo::drawInfo | ( | ) |
Draws performance related information on the screen.
void kanzi::PerformanceInfo::drawProfilingInfo | ( | ) |
Draws profiling graphs.
Sets the font color for drawing the HUD info.
fontColor | The ColorRGBA color value of the font |
Sets the color of the lines used to draw the performance graphs.
lineColor | The ColorRGBA color value for the graph lines |
Sets the border color of the HUD info boxes.
borderColor | The ColorRGBA color value for the graph borders |
Set the text top-left corner position.
x | Text x-position on the screen. |
y | Text y-position on the screen. |