Jump to content
  • Advertisement
Sign in to follow this  
kev000

SDL window within a window

This topic is 4150 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
You can get the X11 window which SDL has created if thats any use.
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSysWMInfo

Share this post


Link to post
Share on other sites
AFAIK, there's nothing in the API to support that, but since you are on linux, you may try the option above.

Share this post


Link to post
Share on other sites
I can get the window info, but mplayer will take over my whole window (in theory at least, i haven't actually tried it yet). Maybe that's not so bad but I'd like only a portion of the screen to be taken that way the rest can be used for play buttons and such.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!