Exposing OpenGL Context

This forum is about all development around libVLC.
jlamanna1576
New Cone
New Cone
Posts: 1
Joined: 24 Feb 2009 19:48

Exposing OpenGL Context

Postby jlamanna1576 » 24 Feb 2009 19:53

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Exposing OpenGL Context

Postby Rémi Denis-Courmont » 25 Feb 2009 17:50

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 24 guests