Jump to content
  • Advertisement
Sign in to follow this  
kingcrimson

About GUI

This topic is 4300 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys, I'm learning GUI programming and I have great interest in it... So..I want to know is there a easy-to-learn GUI sample or anyting else?? I have downloaded JUCE but it seems too complicated :P anyone gives me some advices?...thx...

Share this post


Link to post
Share on other sites
Advertisement
Well, we need more informations about what language are you using, what environment, what do you call a simple example, what do you want to (write a GUI system or use one) and so on.

Regards,

Share this post


Link to post
Share on other sites
er...
Basically it will be used for a PC platform game.
Using C++ and DirectX...
My friends are writing the game engine and we hope to make a simple GUI system if possible or we can use other useful middleware...
The needs of GUI is like common PC games' but it's better to support 3D objects as buttons or sth...
So I want to find some examples with source codes and learn how to write or how to use...

Share this post


Link to post
Share on other sites
Go to the top of the page where it says Resources and click on 'Articles & Resources' and then 'DirectX'. There's a pretty nice set of tutorials in there for creating your own directX gui. If you dont want to start from scratch though you could always use the gui stuff that comes with DXUT. Check out the directX SDK documentation for more info.

Share this post


Link to post
Share on other sites
I second IMGUI. It's really intuitive, and although there's a bit of boilerplate that can be dealt with with some up-front design, it's surprisingly powerful.

Share this post


Link to post
Share on other sites
Thank you all!
I have gone through IMGUI
I found it's really neat =)
But I don't understand more about that...
In my opinion,it uses a process-orientat way to deal with UI and you should render every widge by its state in every frame...
Is that right???

I want to know wether it is more useful than traditional ways...
DX's UI system is not suitable for me because it's too complicated...

Share this post


Link to post
Share on other sites
As far as I can tell, IMGUI is a good option. I recently watched the online lecture from Molly Rocket and read through the SDL tutorial online. I was just starting the GUI for my demo the old way (iWidget<-cBaseWidget<-cButton, etc). Then I quickly reimplemented a couple of widgets using an IMGUI approach and it's going quite well. It seems to take less time and because it doesn't really follow OOD, you aren't worrying about changing something in a unified base class/interface that will propagate down and cause mischief. Although, it definitely feels a bit unusual to be storing a widget's state in 'client' code, but the results are positive so far.

I'd recommend taking a look at IMGUI as an approach, but as with everything in programming, there's more than one way to solve a problem.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!