|
|
On Thu, 15 Sept 2022 at 23:09, Gonzalo wrote:
>
>
> 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.
Indeed it does, but that's "functionally equivalent" here, I would
suggest - I have used this technique to position translucent controls
over a variety of other windows, including over GL2 (as shown in the
example) and GL3 windows, and it has always Just Worked.
So whilst it may be a departure from using GL to render the FLTK
controls in the GL window, it can produce an effect that looks very
similar to the end user, and appears to be pretty portable across
systems (so far, at any rate!)
--
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/CAGFM6dZ5%2BD0fyv4osuxx3uCFFkxzJFOmkKz1i9zFcn2%3D1zqvyA%40mail.gmail.com.
[ Direct Link to Message ] | |
|
| |