Main Menu

Recent posts

#31
Installation help / Vector error in Microsoft Visu...
Last post by _Mir_.cpp - 12 April 2025, 19:54:03
Hello! I have a problem. I followed installation tutorial for static linking and I added path to SFML 3.0.0 (I use SFML Graphics). I also added opengl32.lib, winmm.lib and freetype.lib to Linker->Input->Additional Dependencies because without these libs I had lots of errors during the build. Now, when I try to start my program with Debug configuration, I have an error:

File: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\vector
Line: 1750
Expression: vector erase iterator outside range.

I think it is internal error in TGUI or SFML because my code is very small and it doesn't use Vector. Tell me please how do I fix it.
#32
Help requests / Re: About Gaussian Blur...
Last post by byronhaochen - 15 January 2025, 07:00:50
Quote from: texus on 13 January 2025, 08:37:18It's not possible with TGUI directly. You should add a Canvas widget to the panel and somehow render your gaussian blur on that canvas.

Assuming you use the SFML_GRAPHICS renderer: if you can get the wanted effect in SFML with an sf::RenderTexture, then you can get the same effect in TGUI by replacing the sf::RenderTexture with a tgui::CanvasSFML
Okay, thank you!
#33
Help requests / Re: About Gaussian Blur...
Last post by texus - 13 January 2025, 08:37:18
It's not possible with TGUI directly. You should add a Canvas widget to the panel and somehow render your gaussian blur on that canvas.

Assuming you use the SFML_GRAPHICS renderer: if you can get the wanted effect in SFML with an sf::RenderTexture, then you can get the same effect in TGUI by replacing the sf::RenderTexture with a tgui::CanvasSFML
#34
Help requests / About Gaussian Blur...
Last post by byronhaochen - 13 January 2025, 05:24:01
Hi :) , how to use Gaussian blur effect in the background of Panel?
#35
General Discussion / Re: Just discovered TGUI recen...
Last post by Bluemoon - 04 January 2025, 20:23:48
Seconded. I've spent a lot of time looking for decent GUI dev options for my C++/SDL2 project, and none of them have really ticked all the boxes. TGUI looks fantastic - the builder is going to see a lot of use!
#36
Help requests / Re: Dynamic image support for ...
Last post by byronhaochen - 03 January 2025, 04:44:18
Quote from: texus on 31 December 2024, 11:58:49Animated textures are not supported directly.

You would have to load each frame into a texture and then call the getRenderer()->setTexture() function with a different texture each time you want to update the visible frame.
thank you
#37
Help requests / Re: Dynamic image support for ...
Last post by texus - 31 December 2024, 11:58:49
Animated textures are not supported directly.

You would have to load each frame into a texture and then call the getRenderer()->setTexture() function with a different texture each time you want to update the visible frame.
#38
Help requests / Re: Dynamic image support for ...
Last post by byronhaochen - 31 December 2024, 11:35:14
Similar to GIF...
#39
Help requests / Re: Dynamic image support for ...
Last post by texus - 31 December 2024, 10:45:55
What do you mean with "dynamic image support"? Just changing the texture?

You can change the texture in the widget renderer:
Code (cpp) Select
picture->getRenderer()->setTexture("image.png");
#40
Help requests / Dynamic image support for Butt...
Last post by byronhaochen - 31 December 2024, 09:49:14
Hi, how to implement dynamic image support for button and picture? :)