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 Manolo Sep 15, 2022  
 

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.
The code is meant to be cross platform with a macOS version and a version for other platforms.
It works well under the wayland platform.
But the transition between GL3-style and GL2-style drawing that works under Wayland fails under X11.
Did you succeed in doing that? If yes, can you, please, share your procedure?

--
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/44eb14c0-a321-49d4-8fea-4e066667a769n%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'.