Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Jeanne-Kamikaze

#1
Help requests / Render to texture?
23 May 2014, 13:12:14
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

void setWindow (sf::RenderWindow &window)

If that were generalised to

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.
#2
General Discussion / Tutorial typo?
23 May 2014, 12:26:21
Hi,

I was following the tutorial on version 0.6 here: https://tgui.eu/tutorials/v06/intro2/. When doing

button->load("TGUI/widgets/Button/Black");

the application hangs loading the button theme/style. However, if I replace that line with

button->load("TGUI/widgets/Black.conf");

just like it's done for the edit box, then it all works fine.

Is this a typo in the tutorial?

Thanks.