Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » gui with allegro

This thread is locked; no one can reply to it. rss feed Print
gui with allegro
Karanveer Singh
Member #10,941
May 2009

can we use a gui like qt with allegro? for example, if i want to include buttons and other stuff in my game?

Martin Kalbfuß
Member #9,131
October 2007
avatar

No.

Use the included allegro-gui, guichan, CEGUI or CGUI.

http://remote-lisp.spdns.de -- my server side lisp interpreter
http://www.nongnu.org/gm2/ -- Modula-2 alias Pascal++

Thomas Fjellstrom
Member #476
June 2000
avatar

If you have a lot of experience with Qt, you probably can use it with Allegro probably.

One way would be to implement a QPaintEngine and QPaintDevice to render using allegro itself. Another would be to implement an Allegro widget in Qt.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Steve Terry
Member #1,989
March 2002
avatar

Depends on how much GUI elements you want in your game. If it's simple as a button just do that in code. If it's list boxes, menus, movable windows, etc. then you will most likely want to look into MASkinGUI or guichan. I actually wrote a GUI for allegro long ago and it has since died as a project but I was really close to full GUI functionality and it was damn fast and skinnable.... memories :'(

___________________________________
[ Facebook ]
Microsoft is not the Borg collective. The Borg collective has got proper networking. - planetspace.de
Bill Gates is in fact Shawn Hargreaves' ßî+çh. - Gideon Weems

LennyLen
Member #5,313
December 2004
avatar

Use the included allegro-gui, guichan, CEGUI or CGUI.

The CGUI toolkit uses an object oriented ECMAScript library to create SVG based Custom GUI elements inside a web browser. These widgets can be embedded in an html document and viewed within the html, or the user can open the SVG document in their web browser and view the SVG directly.

That really doesn't sound suitable for writing Allegro applications.

I actually wrote a GUI for allegro long ago and it has since died as a project but I was really close to full GUI functionality and it was damn fast and skinnable.... memories

NAS GUI right? It's a shame you abandoned it, it was a good system.

Speedo
Member #9,783
May 2008

No.

Use the included allegro-gui, guichan, CEGUI or CGUI.

Is there a CEGUI renderer for Allegro? Or are you just using its OGL renderer with AllegroGL?

LennyLen
Member #5,313
December 2004
avatar

Speedo said:

Is there a CEGUI renderer for Allegro?

No.

Martin Kalbfuß
Member #9,131
October 2007
avatar

http://remote-lisp.spdns.de -- my server side lisp interpreter
http://www.nongnu.org/gm2/ -- Modula-2 alias Pascal++

Go to: