Open-source cross-platform <del>GUI</del> HUD library?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
TheOtherGyro
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 4
Joined: Mon Apr 19, 2010 1:38 pm
Current Project: Some surrealist machine-building platformer thing.
Favorite Gaming Platforms: PC Master Race
Programming Language of Choice: C++ master race
Contact:

Open-source cross-platform <del>GUI</del> HUD library?

Post by TheOtherGyro »

I've been looking for a decent GUI library for use with OpenGL for some time now, but each time I try one out, it's either missing certain features that are important to me or it's very difficult to get working. GUIChan didn't have resizable text elements, CEGUI crashed every time I tried to get it to work (and yes, I had all of the dependencies), some other library that I forget the name of had about eight dependencies and had to be built in make (I don't know how to use make, though I can't imagine it'd be that hard). I'm more inclined to write my own GUI code at this point, though that'd be a pain in the ass given my requirements (I'm planning to write an in-game level editor).

So, if anybody could recommend a library for this sort of thing, it'd be very helpful. Also, is CEGUI worth the hassle? By all means tell me if you've had a good experience with it.
Last edited by TheOtherGyro on Tue Apr 20, 2010 2:20 am, edited 1 time in total.
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: Open-source cross-platform GUI library?

Post by Ginto8 »

TheOtherGyro wrote:decent GUI library for use with OpenGL
Well, unless you mean a frame library, then OpenGL is the actual GUI library. If you want a frame library, try WxWidgets or Qt. If you just want an abstraction layer for OpenGL, I'd recommend either making one yourself or using SFML.
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Open-source cross-platform GUI library?

Post by Falco Girgis »

YOU WANT QT, GODDAMNIT! QT IS THE FUTURE OF C++ GUI DEVELOPMENT!

</endfanboyism>
User avatar
hurstshifter
ES Beta Backer
ES Beta Backer
Posts: 713
Joined: Mon Jun 08, 2009 8:33 pm
Favorite Gaming Platforms: SNES
Programming Language of Choice: C/++
Location: Boston, MA
Contact:

Re: Open-source cross-platform GUI library?

Post by hurstshifter »

GyroVorbis wrote:YOU WANT QT, GODDAMNIT! QT IS THE FUTURE OF C++ GUI DEVELOPMENT!

</endfanboyism>

I'm sick of these fuckin Qt fanboys!!!!!!


:lol:
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: Open-source cross-platform GUI library?

Post by LeonBlade »

hurstshifter wrote:
GyroVorbis wrote:YOU WANT QT, GODDAMNIT! QT IS THE FUTURE OF C++ GUI DEVELOPMENT!

</endfanboyism>

I'm sick of these fuckin Qt fanboys!!!!!!


:lol:
Qt is actually great, I'll be using it as well ;)
There's no place like ~/
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Open-source cross-platform GUI library?

Post by Falco Girgis »

hurstshifter wrote:
GyroVorbis wrote:YOU WANT QT, GODDAMNIT! QT IS THE FUTURE OF C++ GUI DEVELOPMENT!

</endfanboyism>

I'm sick of these fuckin Qt fanboys!!!!!!


:lol:
I've been saved many-a-time after putting software engineering projects off until midnight the day it was due by QT. It's like a good friend that helps me out.

Also, Marcel's new editor/toolkit is being written with QT.
User avatar
combatant936
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 39
Joined: Wed Jul 29, 2009 11:11 pm
Current Project: It's a secret!!
Favorite Gaming Platforms: N64, SNES, PS2, PC
Programming Language of Choice: C++, 65816 asm
Location: Pennsylvania
Contact:

Re: Open-source cross-platform GUI library?

Post by combatant936 »

GyroVorbis wrote:Also, Marcel's new editor/toolkit is being written with QT.
Hey mine too!

Click here to see the hidden message (It might contain spoilers)
Image
User avatar
xiphirx
Chaos Rift Junior
Chaos Rift Junior
Posts: 324
Joined: Mon Mar 22, 2010 3:15 pm
Current Project: ******** (Unkown for the time being)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:

Re: Open-source cross-platform GUI library?

Post by xiphirx »

I've been researching on QT since it was mentioned here. Since it is being used for GUI, and I need two gui elements that I really do not wish to code, I am wondering if you guys mean the thing from nokia... I can't really seem to find another "QT".
StarCraft II Zerg Strategy, open to all levels of players!

Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of :)
User avatar
Bullet Pulse
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 89
Joined: Sun Feb 21, 2010 6:25 pm

Re: Open-source cross-platform GUI library?

Post by Bullet Pulse »

xiphirx wrote:I've been researching on QT since it was mentioned here. Since it is being used for GUI, and I need two gui elements that I really do not wish to code, I am wondering if you guys mean the thing from nokia... I can't really seem to find another "QT".
Yea, here's a pointer:
URL *QT = http://en.wikipedia.org/wiki/Qt_(framework);
Lol.
Image
User avatar
TheOtherGyro
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 4
Joined: Mon Apr 19, 2010 1:38 pm
Current Project: Some surrealist machine-building platformer thing.
Favorite Gaming Platforms: PC Master Race
Programming Language of Choice: C++ master race
Contact:

Re: Open-source cross-platform GUI library?

Post by TheOtherGyro »

So wait, QT can be used for things like, say, a HUD? In-game chat with copying to and pasting from the clipboard? It can be used within a fullscreen OpenGL application?

I think you guys misunderstand what I'm looking for. I need something that renders within OpenGL, not that OpenGL can render within. Something like CEGUI or GUIChan but more useful.


EDIT: Ah, I can see what happened here. You were taking the term "Graphical User Interface" literally. What I'm looking for is some sort of library that would make it easier to create things such as an in-game journal, a chat window with scrollable log, an inventory screen, that sort of thing. I'd write it myself but providing cross-platform support for certain things like the clipboard would be a huge pain in the ass, and this sort of thing could just save me work in general.

You know, it'd really be less ambiguous to just call it a HUD library.

I'm looking for a HUD library, anybody have any suggestions?

(In case you skipped most of this post and just jumped here, no, I don't need a library just for simple things like a health bar. Read the rest of the post.)
pritam
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 991
Joined: Thu Nov 13, 2008 3:16 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Amiga, PSOne, NDS
Programming Language of Choice: C++
Location: Sweden

Re: Open-source cross-platform <del>GUI</del> HUD library?

Post by pritam »

Writing your own HUD would probably be the best way to go despite it being a pain in the ass because you'd get exactly what you're looking for.
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: Open-source cross-platform GUI library?

Post by MrDeathNote »

GyroVorbis wrote:YOU WANT QT, GODDAMNIT! QT IS THE FUTURE OF C++ GUI DEVELOPMENT!

</endfanboyism>
GOD YES, QT ROCKS MY WORLD!!!!!!
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Open-source cross-platform GUI library?

Post by Falco Girgis »

TheOtherGyro wrote:So wait, QT can be used for things like, say, a HUD? In-game chat with copying to and pasting from the clipboard? It can be used within a fullscreen OpenGL application?

I think you guys misunderstand what I'm looking for. I need something that renders within OpenGL, not that OpenGL can render within. Something like CEGUI or GUIChan but more useful.


EDIT: Ah, I can see what happened here. You were taking the term "Graphical User Interface" literally. What I'm looking for is some sort of library that would make it easier to create things such as an in-game journal, a chat window with scrollable log, an inventory screen, that sort of thing. I'd write it myself but providing cross-platform support for certain things like the clipboard would be a huge pain in the ass, and this sort of thing could just save me work in general.

You know, it'd really be less ambiguous to just call it a HUD library.

I'm looking for a HUD library, anybody have any suggestions?

(In case you skipped most of this post and just jumped here, no, I don't need a library just for simple things like a health bar. Read the rest of the post.)
Ah, gotcha.

But actually, QT can do that too. It has an OpenGL back-end, and can render to OpenGL canvases. I'm sure it's not what you're looking for, but it can totally do it.
Live-Dimension
Chaos Rift Junior
Chaos Rift Junior
Posts: 345
Joined: Tue Jan 12, 2010 7:23 pm
Favorite Gaming Platforms: PC - Windows 7
Programming Language of Choice: c++;haxe
Contact:

Re: Open-source cross-platform <del>GUI</del> HUD library?

Post by Live-Dimension »

The only one I know of is CEGUI. It can render to DX/OGL and others. Check out the features http://www.cegui.org.uk/wiki/index.php/Features
Image
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Open-source cross-platform <del>GUI</del> HUD library?

Post by eatcomics »

I'd say you be best off writing your own,as mentioned above... there are loads of ways to go about it, and the one that suits you best will probably have to be made by you
Image
Post Reply