Page 1 of 1

Exposing OpenGL Context

Posted: 24 Feb 2009 19:53
by jlamanna1576
Hi,
I'm trying to figure out a way to elegantly expose the OpenGL context that the libglwin32 plugin uses so that I can draw OpenGL objects on top of a playing video.
Without writing a new OpenGL output plugin which directly exposes the context (or lets me assign a callback in GLSwapBuffers()), is there a way through libVLC that I can get at the VOUT object to get to the pf_swap callback?

Thanks.

Re: Exposing OpenGL Context

Posted: 25 Feb 2009 17:50
by RĂ©mi Denis-Courmont
Get at the vout object, yes (with the ugly vlc_object_find() function). Call pf_swap, no. It would not be thread-safe. The only way is to modify the current OpenGL provider plugin, or write a new one.