SFML community forums

Help => General => Topic started by: Resethel on July 24, 2015, 08:51:15 pm

Title: Advices needed for a HUD/GUI
Post by: Resethel on July 24, 2015, 08:51:15 pm
Hello everyone,

I've reached, in a recent project, the point where I must develop a HUD/GUI.
So I was wondering, how to correctly implement it?

Right now the solution I'm trying to build is:


But I guess there are plenty of flaws by this method. So I thought that the HUD could be build as a single class with a vertex array, but I have no clue how to handle the "widgets" this way...

So I was wondering, is my first idea good and how can I improve it?Is the second method better? or should I process in a totally other way?

Anyway, thanks a lot for hearing my request :)
Title: Re: Advices needed for a HUD/GUI
Post by: eXpl0it3r on August 01, 2015, 09:21:43 pm
It's a rather abstract topic and I'm not sure you explained your idea well enough for others to understand it in-depth.
Title: Re: Advices needed for a HUD/GUI
Post by: firefly2442 on August 04, 2015, 09:40:25 pm
If you would like to use an existing library, SFGUI is an option:

http://sfgui.sfml-dev.de/
Title: Re: Advices needed for a HUD/GUI
Post by: Verra on August 05, 2015, 09:13:20 am
Here's a quick in dirty setup I threw together a bit ago. It relies heavily on sfml, you might be able to use it as base to get working on your message passing thing you were talking about. https://bitbucket.org/Verrazano/sassy