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 Garramuño Sep 08, 2022  
 
On 8/9/22 14:20, Greg Ercolano wrote:
    I read that to mean he's calling Fl_Gl_Window::draw() and the bottom of his widget's draw()     because he (probably) has FLTK widgets that are children of his Fl_Gl_Window derived widget.

    According to the docs, your draw() is supposed to do all the GL stuff, then the last thing     you do before return()ing is to call Fl_Gl_Window::draw() so that the child widgets can
    be drawn over your opengl drawing.

Yes, that's exactly what I was trying to do.  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.  That sucks, as I was now relying on that feature for my program.  It is a pity as the video library I am now using requires OpenGL4.1, while FLTK is still stuck on GL2.

Oh well... one more thing the new rewrite of my program won't support.

--
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/c5d197ea-a90c-58db-ce8d-eb7483418bd5%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'.