[fltk.general] Re: hide() / show() a Fl_Gl_Window

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.general  ]
Previous Message ]New Message | Reply ]Next Message ]

Re: hide() / show() a Fl_Gl_Window Manolo Aug 06, 2022 top right image
No more calls besides glwin->show(); are necessary after a GL window was hidden.
The GL context is re-created by member function ::make_current() which is itself automatically called
by the normal event loop.

You can see that with test/fullscreen.cxx : replace line #154 therein
    sw->mode(d ? Fl_Mode(FL_DOUBLE|FL_RGB) : FL_RGB);
    if (d) sw->hide(); else sw->show();
and run this app. Use its "Double Buffered" button to hide and then re-show the GL panel.

You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/a08ed139-27ca-47b2-9f01-28bcc3b0103dn%40googlegroups.com.
Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

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