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

Messages - Jeanne-Kamikaze

#1
Help requests / Re: Render to texture?
25 June 2014, 14:38:14
Ah, your solution seems reasonable enough in that case.
#2
Help requests / Re: Render to texture?
25 June 2014, 14:03:56
I forgot to mention that the current state of the library now is a bit weird because you have a method called setWindow that takes a RenderWindow or RenderTarget through overloading. Perhaps you might consider getting rid of setWindow / getWindow and have just two methods, setRenderTarget and getRenderTarget, that take and return a RenderTarget, respectively.
#3
Help requests / Re: Render to texture?
23 May 2014, 14:17:10
Fantastic, thanks. Will check it out now.
#4
Help requests / Re: Render to texture?
23 May 2014, 14:00:28
My goal is to apply some transformation to the resulting image, such as embedding the gui onto some 3D object. From what I'm seeing, I can always use a sf::Texture and update(the RenderWindow) to retrieve the result, but I suppose that's going to be slower.
#5
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.
#6
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.