Hi
I’m on Unix (FreeBSD), so what should be the type for data?
Since now the type for MS Windows is known, I would also like to know the type for Mac OSX.
Unga— On Fri, 8/12/11, Patrick Baggett <baggett.patrick at gmail.com> wrote:
From: baggett.patrick@gmail.com (Patrick Baggett)
Subject: Re: [SDL] How to use SDL within a firefox plugin?
To: “SDL Development List”
Date: Friday, August 12, 2011, 3:41 AM
This depends on the platform. For example, on Win32, it is the HWND type.
Patrick
On Thu, Aug 11, 2011 at 2:09 PM, Unga <@Unga> wrote:
Hi
I have tried SDL_CreateWindowFrom. But it fails due to incorrect data supplied.
SDL_Window* SDL_CreateWindowFrom(const void* data)
data = a pointer to driver-dependent window creation data
What is the type or structure of this “data”?
Kind regards
Unga
— On Tue, 8/9/11, Unga <@Unga> wrote:
From: @Unga (Unga)
Subject: Re: [SDL] How to use SDL within a firefox plugin?
To: “SDL Development List” , “Mason Wheeler”
Date: Tuesday, August 9, 2011, 3:41 PM
Hi Mason
Thanks for the reply.
I’ll try SDL_CreateWindowFrom. But the issue is I’m currently on SDL 1.2, I tried to compile and install the SDL 1.3 but develop compilation errors. This I’ll
post as a separate mail.
Unga
— On Tue, 8/9/11, Mason Wheeler wrote:
From: masonwheeler@yahoo.com (Mason Wheeler)
Subject: Re: [SDL] How to use SDL within a firefox plugin?
To: “SDL Development List”
Date: Tuesday, August 9, 2011, 2:52 AM
You need some way to get a reference to the
Firefox window of the type that SDL_CreateWindowFrom is expecting (a HWND handle on Windows, not sure for other platforms) and pass that to SDL_CreateWindowFrom.? That will initialize the window for SDL to render to.
Note: I’m speaking from 1.3 experience.? It might be different if you’re using 1.2.
From: @Unga (Unga)
Subject: [SDL] How to use SDL within a firefox plugin?
Hi all
I have a video player written in C using SDL. Its working well standalone.
I want to bring this video
playing functionality into a firefox plugin.
What I don’t understand is how to specify the firefox window or drawable to SDL as to which window to send the output.
The firefox calls NPP_HandleEvent() defined within the plugin as follows:
NPP_HandleEvent(NPP instance, void* event) {
? InstanceData instanceData = (InstanceData)(instance->pdata);
? XEvent nativeEvent = (XEvent)event;
? if (nativeEvent->type != GraphicsExpose)
? ? return 0;
? XGraphicsExposeEvent expose = &nativeEvent->xgraphicsexpose;
? instanceData->window.window = (void)(expose->drawable);
}
Appreciate your help in this regard.
Many thanks in
advance.
Best regards
Unga
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
-----Inline Attachment Follows-----
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
-----Inline Attachment Follows-----
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
-----Inline Attachment Follows-----
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org