by Major Cooke » Sat Jun 22, 2019 7:07 pm
Pull Request
Basically a direct copy/paste of RenderOverlay's code, but made to be drawn first so it goes under huds instead. Before this PR, there was no way to draw stuff behind the huds due to RenderOverlay being drawn last.
I also chose to make it a separate function rather than a boolean to RenderOverlay because that would mean constantly calling RenderOverlay twice if there's any code at all in it.
With this I'll be able to draw elements that render through walls, yet won't overlap the hud itself such as making Doom 2016-esque highlights of item drops.
[url=https://github.com/coelckers/gzdoom/pull/879]Pull Request[/url]
Basically a direct copy/paste of RenderOverlay's code, but made to be drawn first so it goes under huds instead. Before this PR, there was no way to draw stuff behind the huds due to RenderOverlay being drawn last.
I also chose to make it a separate function rather than a boolean to RenderOverlay because that would mean constantly calling RenderOverlay twice if there's any code at all in it.
With this I'll be able to draw elements that render through walls, yet won't overlap the hud itself such as making Doom 2016-esque highlights of item drops.