[vlc-devel] [PATCH 2/4] vgl: expose opengl callbacks through libvlc

Pierre Lamot pierre at videolabs.io
Wed Jul 4 10:13:57 CEST 2018


> > + * \param opaque private pointer passed to the @a
> > libvlc_video_set_opengl_callbacks() [IN]
> > + * \param enter true before
> > performing the rendering, false after [IN]
> > + * \version LibVLC 4.0.0 or
> > later
> > + */
> > +typedef void (*libvlc_gl_render_cb)(void* opaque, bool enter);
> 
> I don't really see why this should be different from everything else - a post-
> render swap callback.

The idea was to let the user set up his context before rendering (ie: select the right FBO), I thought
it was easier this way. This might work with a single post render swap, I'll try to do it this way.

> In fact, special snowflake callbacks are notorious problems when revectoring 
> the backends.

I can make it two callbacks, but i don't think that's your point.

--
Pierre Lamot





More information about the vlc-devel mailing list