[fltk.general] Re: How can I disable automatic buffer swapping in subwindows?

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: How can I disable automatic buffer swapping in subwindows? Ian MacArthur 02:52 Aug 02 top right image
 
On Sunday, 31 July 2022 at 22:20:37 UTC+1 jacky... wrote:
I'm considering FLTK to build an emulator frontend for Mupen64Plus.

To allow the emulator to provide output, it needs a (child) window that it gains exclusive control of. This means that I need to somehow disable calling swap_buffers() after draw() in an Fl_Gl_Window, so that I can manually call swap_buffers when I desire.

However, I only want to do this for the emulator's child window. I want everything else to draw according to FLTK's event loop.

How would I accomplish this?


This sounds a lot like a GL question - so not exactly my area! 

However, I think if you derive your own window widget from Fl_GL_Window, for use as your child window, and in the implementation of that derived widget you DO NOT call the base class draw or event handling, then the derived window will not get any swap_buffer events unless you explicitly trigger them.

But... do not take my word for it, I may be talking nonsense...

--
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/66b409c4-1bac-4228-b5bf-1a932d8c6a8bn%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-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.