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 Gonzalo Garramuno Sep 16, 2022  
 

> El 16 sep. 2022, a las 04:17, Manolo <manolo.gouy@gmail.com> escribió:
> 
> 
> 
> Le vendredi 16 septembre 2022 à 00:04:43 UTC+2, Gonzalo a écrit :
> 
> 
> > El 15 sep. 2022, a las 13:45, Manolo  escribió: 
> > 
> > 
> > 
> > Le mercredi 14 septembre 2022 à 21:41:51 UTC+2, Gonzalo a écrit : 
> > 
> > 
> > > El 13 sep. 2022, a las 06:28, Manolo escribió: 
> > > 
> > > @Gonzalo: I realize now my proposal was wrong. 
> > > The good solution is not to use a transparent GL2 window but a transparent normal window, 
> > > see attached example program which builds upon OpenGL3test.cxx : 
> > > 
> > 
> > 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). 
> > 
> > I attach a new attempt to allow transparent colors. It uses the recent changes to FLTK 1.4 committed to git. 
> > Unfortunately it works only partially under macOS because transparency starts correctly but then disappears, for a reason that remains unclear to me. 
> 
> I tried it on macOS and could not make it fail. It was always semi transparent. What triggers the disappearance of the transparency? 
> 
> What I see is:
> - run the program, the button's background is colored red blended to the underlying blue color; that's good;
> - hide the program (cmd-H) , show it again: the button is colored pure red; that's bad.
> 
> I run here macOS Ventura 13.0 public beta.  It might be a Ventura bug?
> 

No, if It is a bug it’s present on Monterrey too.


> 
> You had written in this thread on 9 sept :
> "On Linux and Windows this works, but on macOS, as Manolo said, it does not, as it does not allow 
> mixing OpenGL2 and OpenGL3+ calls. "
> I interpreted that meaning you solved how to combine GL3 + GL2 under Linux and Windows.
> 

Sorry.  I misspoke.  I was just repeating what you mentioned about GL3/2 compatibility without having tried it myself.

You had written on the 8th of September:
"Notice this restriction is macOS-specific. The other 3 platforms allow mixing."

—
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/FB57245E-E402-4ED8-80C8-43379381B30E%40gmail.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'.