[Interest] Allow external library to generate OpenGL buffers in context of QOpenGLWidget

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Mon Jul 15 22:58:29 CEST 2019


Il 15/07/19 22:51, Pieter Barendrecht ha scritto:
> Hi Giuseppe,
> 
> Thanks, but unfortunately that's not it. It turns out to be possible to 
> specify an OpenGL context as an optional argument when invoking certain 
> calls to OpenSubdiv, though I'm not quite sure what to pass on from 
> within a QOpenGLWidget — something like context()->handle() compiles but 
> doesn't do the trick. To be continued...

What kind of argument is supposed to be passed? The context alone seems 
a bit pointless (at a minimum one needs an ad-hoc struct containing 
context, a surface, and pointers to functions to make it current / 
uncurrent...).

Cheers,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190715/9a82882d/attachment.bin>


More information about the Interest mailing list