FLTK logo

Re: [fltk.general] Transparent window

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.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Transparent window Ian MacArthur Jun 20, 2022  
 
On Sunday, 19 June 2022 at 14:30:05 UTC+1  Håvard  wrote:

Sorry for re-posting. I do not know if the other post is shown as it is done as a follow-up on an old thread.

For the record - yes, the post (on the other thread) did indeed appear OK.
 

Based on the nice work by Matthias, I make a FL_Group in my Fl_Gl_Window. This do support transparent colors, as can be seen in the attached image.

Looks pretty good, doo.

 
This looks just like I wanted. However there are a few issues:
1) The event handling is not always ok. I suspect that my Fl_Gl_Window captrues it. This may be my mistake.

It could be - I've had weird issues with event handling in GL windows in the past, so it may well be tricky!
That said, I have no real grasp of how Matt handles propagation of events to fltk widgets within the GL window context, so...
I don't suppose you have a minimal compileable example that shows how you did your GL context?

 
2) Clicking on the buttons causes a redraw, and that may lead to the Fl_Group is "blinking". Is the problem that my Fl_Gl_Window/draw() uses too much time ?

I'd speculate that the redraw of the GL scene is what triggers the flickering...

That said, if you are happy with a floating window that is translucent (including all its enclosed widgets) you can get that effect from the 2D API if you use the platform code I showed, so it may be possible to float a "translucent Fl_Double_Window" over your GL scene and have that redraw without flicker, I think.
Possibly.

 

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/0354b206-f1fa-4bd6-9d32-19f804dcac5fn%40googlegroups.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'.