[SDL] firefox

Gabriele Greco gabriele.greco at darts.it
Mon Apr 28 00:23:13 PDT 2008


On 4/27/08, Abhinav Lele <abhinav.lele at gmail.com> wrote:
>
> Hi,
> Does anyone have any sample howto / code on how to create a plugin for
> firefox/etc with SDL .


Some years ago I tried to do that, but it's not a correct approach, my
plugin worked ok if only one instance of the plugin was present in any
browser window, but started to give big problems if you tried to run two
instance of the plugin, this is caused by the single window limitation of
SDL 1.2, you can give SDL the browser rectangle assigned to your plugin
through the enviroment variable SDL_windowid, but when you need to do it a
second time you loose the first window, also I seem to remember that the
plugin rendered his graphics also if it was in an hidden tab.

-- 
Bye,
 Gabry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080428/9a2e0bfd/attachment.htm 


More information about the SDL mailing list