BGE: Fix for [#34781] "bge.texture.ImageRender does not show Font object" reported...
authorMitchell Stokes <mogurijin@gmail.com>
Thu, 20 Jun 2013 03:50:02 +0000 (03:50 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Thu, 20 Jun 2013 03:50:02 +0000 (03:50 +0000)
commit1e64732d5264edef5af455febdf8567fc3472a05
tree8b4d5a8862bf8458a4d5188ac41d32c14164c1ca
parent4eded6dbdcb3c0d451a0d5d5f0147be73b10f8af
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.
source/gameengine/Ketsji/KX_KetsjiEngine.cpp
source/gameengine/Ketsji/KX_KetsjiEngine.h
source/gameengine/Ketsji/KX_Scene.cpp
source/gameengine/Ketsji/KX_Scene.h
source/gameengine/VideoTexture/ImageRender.cpp