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 Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: GL root Fl_Gl_Window::draw Greg Ercolano Sep 08, 2022  
 

On 9/8/22 05:27, Albrecht Schlosser wrote:

On 9/8/22 03:25 schrieb Gonzalo Garramuno wrote:
I am using OpenGL 4.1 on MacOS.  I tried calling Fl_Gl_Window::draw() at the end of my GL viewport widget and was greeted with a crash in gl_draw / gl_font.

I'm not sure if I understand this correctly. What means "at the end of my GL viewport widget"? Does this mean at the end of the constructor?

    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.

--
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/f2e79799-e944-3950-cfd9-7b5682cb11f6%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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