Hi,
Is it possible to render a tgui::Gui into a sf::RenderTexture? I have been reading this post https://forum.tgui.eu/index.php/topic,119.0.html, but that code seems to target version 0.5 of tgui.
Reading up on the docs, it seems tgui:Gui has a method
If that were generalised to
then one could easily render into a texture, but there doesn't seem to be such an option.
Could anyone shed some light on this? Thanks.
Is it possible to render a tgui::Gui into a sf::RenderTexture? I have been reading this post https://forum.tgui.eu/index.php/topic,119.0.html, but that code seems to target version 0.5 of tgui.
Reading up on the docs, it seems tgui:Gui has a method
Code Select
void setWindow (sf::RenderWindow &window)
If that were generalised to
Code Select
void setWindow (sf::RenderTarget &target)
then one could easily render into a texture, but there doesn't seem to be such an option.
Could anyone shed some light on this? Thanks.