diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2013-01-28 05:26:36 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2013-01-28 05:26:36 +0400 |
commit | 3a1ee13278b21176482b98d86709a3bdd489d531 (patch) | |
tree | cc2eedec28b5e8bba5062db0fedf5d07930e5efc /source/gameengine/GamePlayer/common/GPC_RenderTools.h | |
parent | f64124cb781fee2366f1c5db4f0068420f874556 (diff) |
BGE Profile : visual feedback bars and improvements
You can see a screenshot of the funcionality here:
http://wiki.blender.org/index.php/Doc:2.6/manual/Game_Engine/Performance/Display/Framerate_and_Profile
This patch creates a bar-like graph to quickly allow the game dev to see the performance changes.
Also it changes the font to monospace (too allow ' ' padding) and reduced shadow border to
match the blenderplayer one.
Patch finalized and commited at Global Game Jam Vancouver (last one, time to sleep forever now)
Diffstat (limited to 'source/gameengine/GamePlayer/common/GPC_RenderTools.h')
-rw-r--r-- | source/gameengine/GamePlayer/common/GPC_RenderTools.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_RenderTools.h b/source/gameengine/GamePlayer/common/GPC_RenderTools.h index 1030c09548a..f4dcddd3250 100644 --- a/source/gameengine/GamePlayer/common/GPC_RenderTools.h +++ b/source/gameengine/GamePlayer/common/GPC_RenderTools.h @@ -70,6 +70,12 @@ public: void DisableOpenGLLights(); void ProcessLighting(RAS_IRasterizer *rasty, bool uselights, const MT_Transform& viewmat); + void RenderBox2D(int xco, + int yco, + int width, + int height, + float percentage); + void RenderText3D(int fontid, const char* text, int size, |