Re: [Plib-users] Translucent Widgets
Brought to you by:
sjbaker
|
From: dave <da...@mi...> - 2002-01-17 21:35:15
|
I'd like to have various groups of widgets that have differing states of translucence. It isnt obvious to me how to do this. I don't know much about openGL/Glut, after all, the motivation to use higher level libraries is partly so I dont have to learn as much low-level details. It seems to me that setting up a blend function just before calling puDisplay is the wrong approach. Setting the defaultColour would apply to the entire PUI display list would it not? Also, it seems like one would always want to save/restore the previous defaultColour as well, and this would be going on a lot. I suspect it is better to derive new translucent PUI classes and put the blending within each widget. One could then get a group box where the box's background is in one state of translucence, and the widgets on top of it can be slightly less translucent, ie, more solid, depending on how one programs the widgets as one builds the group. It seems to me that each object should have a setColour() and load color, ie, that these functions should be within the puObject class instead of being global to PUI. This seems like excessive work so I must be wrong, I just dont know quite how. Any suggestions? |