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/Rasterizer | |
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/Rasterizer')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_IRenderTools.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/gameengine/Rasterizer/RAS_IRenderTools.h b/source/gameengine/Rasterizer/RAS_IRenderTools.h index bccda634222..6131abc0650 100644 --- a/source/gameengine/Rasterizer/RAS_IRenderTools.h +++ b/source/gameengine/Rasterizer/RAS_IRenderTools.h @@ -100,6 +100,22 @@ public: double* oglmatrix, int drawingmode )=0; + + /** + * Renders 2D boxes. + * \param xco Position on the screen (origin in lower left corner). + * \param yco Position on the screen (origin in lower left corner). + * \param width Width of the canvas to draw to. + * \param height Height of the canvas to draw to. + * \param percentage Percentage of bar. + */ + virtual + void + RenderBox2D(int xco, + int yco, + int width, + int height, + float percentage) = 0; /** * Renders 3D text string using BFL. |