Overlay singleton overhaul

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
User avatar
Posts: 505
Joined: Mon Apr 02, 2007 12:18 am
Location: Sweden
x 62

Overlay singleton overhaul

Post by lingfors »

Hi, I modified the Overlay component to not declare any internal components as singletons. This way I could very easily render different overlays on different viewports, without having to resort to any weird rendertarget listeners or renderqueue magic.

I also updated the other parts of Ogre that use the Overlay component to be compileable, but no extensive testing was performed that everything works as expected. I'm also guessing that this update will cause overlay and font scripts to be read and parsed once for each OverlayManager and FontManager created, but since I only needed this for some prototyping I didn't bother.

If there is any interest in this, tell me and I will properly set up an Ogre fork with this modification.

(76.58 KiB) Downloaded 65 times

Post Reply