<html><head></head><body>I don't know if the size should be exposed to the backend. But AFAIK, the size can change during the lifetime of the GL backend, so it can probably not be tied to an initialization callback. Also, I would be prepared that the size is not even known yet when the GL is needed.<br><br><div class="gmail_quote">Le 4 juillet 2018 11:13:57 GMT+03:00, Pierre Lamot <pierre@videolabs.io> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> + * \param opaque private pointer passed to the @a<br> libvlc_video_set_opengl_callbacks() [IN]<br> + * \param enter true before<br> performing the rendering, false after [IN]<br> + * \version LibVLC 4.0.0 or<br> later<br> + */<br> +typedef void (*libvlc_gl_render_cb)(void* opaque, bool enter);<br></blockquote> <br> I don't really see why this should be different from everything else - a post-<br> render swap callback.<br></blockquote><br>The idea was to let the user set up his context before rendering (ie: select the right FBO), I thought<br>it was easier this way. This might work with a single post render swap, I'll try to do it this way.<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> In fact, special snowflake callbacks are notorious problems when revectoring <br> the backends.<br></blockquote><br>I can make it two callbacks, but i don't think that's your point.<br><br>--<br>Pierre Lamot<br><br><br><br><hr><br>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a></pre></blockquote></div><br>
-- <br>
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>