SFML community forums
General => SFML projects => Topic started by: Jallen on July 04, 2009, 11:18:39 am
-
I hadn't even thought to post it on the SFML forums, but I just realised, after making it a few weeks ago for my final computing project that you guys might like it.
YOUTUBE VIDEO OF IT BEING USED
http://www.youtube.com/watch?v=jbpuOpHPhQo
(http://imgkk.com/images/FRJh0J4c.jpg)
(http://imgkk.com/images/sh5IUCoE.jpg)
(http://imgkk.com/images/gnTFdhfe.jpg)
Hope you like it :D
-
Looks great!
How did you do the GUI stuff? Is it really a GUI system or just hardcoded stuff?
-
The buttons are bordered rectangles which check if the mouse is in their boundaries every time the mouse is down.
When you set up a button you give a top left vector, a bottom right vector, text for the button to display and a function pointer which the button will call if it is clicked.
I don't know what you mean by "Is it really a GUI system or just hardcoded stuff?" but the GUI_Manager, Button and Label classes could be used with any other SFML project just by copying the files and passing them the correct data when constructing them.
-
Saw this on Facepunch, heh. So what library (if any) are you using to manage your physics?
By the way the interface is really simple and seems to work very well for this kind of project, nice job.
Op, saw the end of the video, great job on your physics.
-
can you upload it somewhere so we can play with it? :D
ps it looks nice
-
I don't know what you mean by "Is it really a GUI system or just hardcoded stuff?" but the GUI_Manager, Button and Label classes could be used with any other SFML project just by copying the files and passing them the correct data when constructing them.
By Gui System or Hardcoded he wanted to know if all of the gui objects and what not were put in your simulation in such a way that they could not be moved to another project easily or if they could.
Hardcoded = Can't move from project unless into the same exact conditions;
Gui System = Dynamic, can be used independently (with the right dependencies of course)