FLTK logo

Re: [fltk.coredev] GL root Fl_Gl_Window::draw

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: GL root Fl_Gl_Window::draw imm Sep 16, 2022  
 
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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.