|
|
> El 15 sep. 2022, a las 10:39, imacarthur <imacarthur@gmail.com> escribió:
>
> On Wednesday, 14 September 2022 at 20:41:51 UTC+1 Gonzalo wrote:
>
> That *almost* works. What is missing is giving the button a transparent or semi-transparent color, like in the cube.cxx demo. I would need that, or a FL_STENCIL on the window, so I can implement drawing in the window (with erasing with the stencil).
>
> OK, so in looking for some old code to answer a question on fltk.general (Hi Gonzalo...) I found another bit of code I had.
>
> If the question is about drawing a translucent FL window over a GL surface, I have code for this... Here's an example - it's GL2, but should Just Work.
No. The question was about drawing translucent widgets (buttons, text inputs, etc) over GL3 window. With GL2 it is easy, as calling the base Fl_Gl_Window::draw() at the end in the virtual draw function of the GL window does it.
Your code turns the a normal fltk window semi transparent.
—
Gonzalo Garramuno
ggarra13@gmail.com
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/069B5FFA-126F-4D98-9ADD-2A2D8E78B4BA%40gmail.com.
[ Direct Link to Message ] | |
|
| |