libglui / glui

GLUI is a GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications. It is window-system independent, using GLUT or FreeGLUT.
Other
196 stars 81 forks source link

Detailed API for for color / font / texture description #39

Open josch opened 9 years ago

josch commented 9 years ago

https://sourceforge.net/p/glui/feature-requests/3/

original report

I know there is some undocumented features (ex GLUI::bkgd_color.set(R, G, B) to define the color / font off a control. I think I would be good to have it documented (if its already done, where is it ?) and to profide an "application" scheme to control the appearance of all sub-windows (switchable global defaut settings for example).

By the way I would be cool to provide the ability to put texture on the back of each control.

David

reply 1

Yes, I agree that having more theming flexibility would certainly be an advantage. Recently I have been dealing a bit with web CSS (Cascading Style Sheets) which certainly provides a model for doing this kind of thing. Attributes can be specified for kinds of elements (lists, paragraphs, headings) or specifically named elements.

reply 2

Yes, that would be good.