Page 1 of 1

Overlay singleton overhaul

Posted: Wed Mar 18, 2015 5:18 pm
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.

Cheers!