[SDL] SDL_WINDOWID: embedding SDL into gtkmm

Mikael Eriksson mikael_miffe_eriksson at yahoo.se
Fri Sep 14 21:05:50 PDT 2007


On Fri, Sep 14, 2007 at 11:21:28AM +0200, Germán Diago wrote:
> Hello. I'm trying to embed an SDL_Window into my own application.
> I think that this way SDL should draw into my own application window, like
> described in a lot of mailing lists I googled.
> But I get an SDL toplevel window instead. So I have my app's window and an
> SDL one. I checked if the variable is
> correctly set up, and it is. So... could anyone help on this, please.
> Thank you very much in advance.

I'm not sure but i think the window has to be a GtkSocket, atleast that
works for me, see the attached test program. It works but putting the
draw rect stuff inside the button callback didn't seem to work, thats
why it's an event.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtk-sdl-test.c
Type: text/x-csrc
Size: 2964 bytes
Desc: not available
Url : http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070915/9e8313f1/attachment.c 


More information about the SDL mailing list