SDL window within a window
Is it possible with SDL to ebed another application window within your SDL created window?
What I'm trying to do is create a mplayer front-end for in-car PCs running Linux. mplayer has a switch (-wid <window id>) that will tell mplayer to draw in the window with the specific ID. I was told that in GTK, I can create a socket window with a specified geometry and window id within my application. I can then pass that id to mplayer. Does anyone here have any experience with doing this? I don't want to use gtk for obvious reasons (blout, lack of coolness, etc.) and the app is already very far in progression with SDL. can anyone help?
thanks,
Kev
You can get the X11 window which SDL has created if thats any use.
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSysWMInfo
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSysWMInfo
AFAIK, there's nothing in the API to support that, but since you are on linux, you may try the option above.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement