FLTK logo

Re: [fltk.general] Porting a Qt application that uses QOffscreenSurface and QOpenGLContext

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: Porting a Qt application that uses QOffscreenSurface and QOpenGLContext imm Sep 16, 2022  
 
On Thu, 15 Sept 2022 at 23:17, Gonzalo wrote:

> > So... like creating an offscreen GL surface, and then getting the context for that, perhaps?
>
> Yes.  The issue is that the offscreen GL surface is not drawn inside the GL window’s draw() method, so there’s no GL context.
>

Yes, but GL contexts under FLTK are a bit weird in that you can
(pretty much, anyway) draw to them outside of the regular draw()
method - if you can get a suitable reference to the  context, then
using the usual GL techniques you can then draw stuff into that
context "as you go along"; so that might be sufficient for your needs?
I guess that is what Manolo was meaning when he said "You can access
the GL context with public member Fl_Gl_Window->context()" earlier?
Not sure...

-- 
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/CAGFM6db6APoTX2aB%2BXsbcy7fc3PtFwkpbyBjHhcV9iHVC_MpTg%40mail.gmail.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'.