|
|
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 ] | |
|
| |