Sign in to follow this  
DonceLT

GUI selection in OpenGL, C++

Recommended Posts

DonceLT    121
Currently I am working on a C++ OpenGL traffic simulation, and the main problem GUI. I have created my own classes like table, button, label. The problem is that it is getting very complicated and I am wondering, is it worth using some GUI library or windows GUI?

Share this post


Link to post
Share on other sites
Dunge    405
[quote name='DonceLT' timestamp='1306437993' post='4816144']
Currently I am working on a C++ OpenGL traffic simulation, and the main problem GUI. I have created my own classes like table, button, label. The problem is that it is getting very complicated and I am wondering, is it worth using some GUI library or windows GUI?
[/quote]

It's easy to create a smaller viewport than you window and use Windows controls. In .NET it would probably be the best way, but in C++ the Win32/MFC api is rather crappy and you will curse a lot. You can also continue on your path, and create your own GUI, but that's a lot of job. There are libraries you could use, but they are rare. The most common one is probably [url="http://www.cegui.org.uk/wiki/index.php/Main_Page"]CEGUI[/url].

By the way, I'm also working for traffic management. Would love to hear more about your project.

Share this post


Link to post
Share on other sites
wqking    761
If you mean Windows GUI, I would recommend wxWidgets, easy to use and relative lightweight.
If you don't mind very heavyweight, Qt is another choice.

If you mean GUI in OpenGL, maybe look at GLUI? I don't have any experience on it.

Since your UI is complicated, don't do it yourself, choose an appropriate existing library, then spend your time on game logic.

Share this post


Link to post
Share on other sites
DonceLT    121
[quote name='Dunge' timestamp='1306441948' post='4816166']
[quote name='DonceLT' timestamp='1306437993' post='4816144']
Currently I am working on a C++ OpenGL traffic simulation, and the main problem GUI. I have created my own classes like table, button, label. The problem is that it is getting very complicated and I am wondering, is it worth using some GUI library or windows GUI?
[/quote]

It's easy to create a smaller viewport than you window and use Windows controls. In .NET it would probably be the best way, but in C++ the Win32/MFC api is rather crappy and you will curse a lot. You can also continue on your path, and create your own GUI, but that's a lot of job. There are libraries you could use, but they are rare. The most common one is probably [url="http://www.cegui.org.uk/wiki/index.php/Main_Page"]CEGUI[/url].

By the way, I'm also working for traffic management. Would love to hear more about your project.
[/quote]

Well, my project is still in development, so there isn't much to tell. I have few videos, but it's quite old, so it's not worth showing. Maybe I'll write about it in the future. What about your project, could you give some info about it? :)

Share this post


Link to post
Share on other sites
Grafalgar    548
Check out the UI library + Editor I put together - [url="http://www.otterui.com"]www.otterui.com[/url]. It's not quite as involved as CEGUI, but it'll (hopefully) get the job done for you pretty quickly. Also, if you don't want to worry about OpenGL / DirectX / etc rendering, there are sample renderers for you to get you going quickly.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this