Making a simplified interface
Posted: Thu Mar 16, 2006 01:24
I'd like to solicit opinions on creating a simplified interface for CEGUI. CEGUI can do an awful lot, but it's also kind of a lot to swallow when all you want is a quick list of option buttons in the middle of the screen.
So what could be done to create a sort of CE-EZ interface to the existing API?
When I want to throw together a UI for my GL program quickly, I typically use GLUI (http://glui.sourceforge.net/). With GLUI you can come pretty close to the ideal of 1 line of code per widget displayed. It's great. But it also requires GLUT (ick!) and it's pretty inflexible. Great for a rapid prototype, but when you need start adding more functionality it's just not possible. (Want an image on a button -- TOO BAD!)
In my thinking, some sort of GLUI-like wrapper for CEGUI would be great. I once did a little experiment to see if I could emulate GLUT using FOX. The little one-day experiment went pretty well, I think (http://www.billbaxter.com/projects/fox/fxglut/). I got to where I could make windows and set up call-backs using something very close to the glut API. After that my plan was to emulate GLUI as well, but I didn't get that far. I still think it's possible. Espeically since the goal was not 100% compatibility but something that had the same degree of ease-of use, without the severe restrictions.
What other approaches are possible for making CEGUI easier to use for slapping together quick prototypes? A fellow in another thread suggested that better GUI editors are the way to go. If you have that, then ease of use is solved, he seemed to be saying.
Thoughts?
So what could be done to create a sort of CE-EZ interface to the existing API?
When I want to throw together a UI for my GL program quickly, I typically use GLUI (http://glui.sourceforge.net/). With GLUI you can come pretty close to the ideal of 1 line of code per widget displayed. It's great. But it also requires GLUT (ick!) and it's pretty inflexible. Great for a rapid prototype, but when you need start adding more functionality it's just not possible. (Want an image on a button -- TOO BAD!)
In my thinking, some sort of GLUI-like wrapper for CEGUI would be great. I once did a little experiment to see if I could emulate GLUT using FOX. The little one-day experiment went pretty well, I think (http://www.billbaxter.com/projects/fox/fxglut/). I got to where I could make windows and set up call-backs using something very close to the glut API. After that my plan was to emulate GLUI as well, but I didn't get that far. I still think it's possible. Espeically since the goal was not 100% compatibility but something that had the same degree of ease-of use, without the severe restrictions.
What other approaches are possible for making CEGUI easier to use for slapping together quick prototypes? A fellow in another thread suggested that better GUI editors are the way to go. If you have that, then ease of use is solved, he seemed to be saying.
Thoughts?