diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-06-20 07:50:02 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-06-20 07:50:02 +0400 |
commit | 1e64732d5264edef5af455febdf8567fc3472a05 (patch) | |
tree | 8b4d5a8862bf8458a4d5188ac41d32c14164c1ca /source/gameengine/Ketsji/KX_Scene.h | |
parent | 4eded6dbdcb3c0d451a0d5d5f0147be73b10f8af (diff) |
BGE: Fix for [#34781] "bge.texture.ImageRender does not show Font object" reported by Monster.
This fix is mostly based off of HG1's patch from the bug report, which had ImageRender::Render() call KX_KetsjiEngine::RenderFonts(). However, I have moved RenderFonts() from KX_KetsjiEngine to KX_Scene where all of the other font and rendering functions are. The real fix for this mess would be to not have ImageRender::Render() have so much duplicate code from KX_KetsjiEngine::Render(), but that's a code cleanup problem for another day.
Diffstat (limited to 'source/gameengine/Ketsji/KX_Scene.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_Scene.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/gameengine/Ketsji/KX_Scene.h b/source/gameengine/Ketsji/KX_Scene.h index 632e1bf9b50..7c3ea946044 100644 --- a/source/gameengine/Ketsji/KX_Scene.h +++ b/source/gameengine/Ketsji/KX_Scene.h @@ -381,10 +381,6 @@ public: ); /** Font Routines */ - - std::list<class KX_FontObject*>* - GetFonts( - ); /** Find a font in the scene by pointer. */ KX_FontObject* @@ -398,6 +394,10 @@ public: KX_FontObject* ); + /** Render the fonts in this scene. */ + void + RenderFonts( + ); /** Camera Routines */ |