Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Does allegro 5 have a built in gui library?

This thread is locked; no one can reply to it. rss feed Print
Does allegro 5 have a built in gui library?
Shadowblitz16
Member #16,818
March 2018

Does allegro 5 have a built in gui library?
I heard it used win32 for it's window is there a way to add controls to it?

I was looking for a easy to use native gui library but couldn't find anything.
wxWidgets seems like it could be possible but it looks like its not easy to make cross platform.

Eric Johnson
Member #14,841
January 2013
avatar

Oh boy, Edgar's going to love you. ;)

Allegro 5 does not have a built-in GUI library. However, you could try Edgar's EagleGUI library, which uses Allegro 5. I think it's currently Windows only.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Shadowblitz16
Member #16,818
March 2018

the thing is I want to have native looking controls that obey the theme of the users os.

Eric Johnson
Member #14,841
January 2013
avatar

Edgar, when did you add Linux support to Eagle? :o I remember you posted a bounty for getting it to compile under Linux or something, but that may have been a couple of years ago now... I've been out of the loop for a while. :-/

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Shadowblitz16
Member #16,818
March 2018

most of the GUI library links are dead.
I was trying to look at cgui

Eric Johnson
Member #14,841
January 2013
avatar

The library has been compiling on Linux for several years now.

Shows how long I've been out of the loop. :o Good on you!

Shadowblitz16
Member #16,818
March 2018

So what about making my own win32 wrapper?

how would I do that?

is there a way to attach win32 controls to the allegro window?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

amarillion
Member #940
January 2001
avatar

Making a cross-platform GUI in C++ is never easy. And Allegro is probably not the right library for you, unless you also need some Allegro-specific functionality.

Nowadays, if you want cross-platform GUI stuff, your best bet is JavaScript. But that is just my opinion.

jmasterx
Member #11,410
October 2009

Yeah, aside from EAGLE there's also https://github.com/jmasterx/Agui but that's not native widgets either.

Typically if you're running a ui in a game you're not running native widgets unless you use a web browser.

You can use something like QT which is what you want.

Obviously the best is web/JS but if it must run on the desktop QT is what you want.

Niunio
Member #1,975
March 2002
avatar

Nowadays, if you want cross-platform GUI stuff, your best bet is JavaScript. But that is just my opinion.

Actually the best is Lazarus, but it is Object Pascal... ::)

-----------------
Current projects: Allegro.pas | MinGRo

Go to: