Jump to content
  • Advertisement
Sign in to follow this  
nooblet

[SDL] Creating a child window...

This topic is 3497 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

Hey everyone, I was curious if it was possible to make another window inside of the screen. Making the screen the root, and the other window the child. What I mean is something like this: ROOT -> READ USER INPUT -> IF PRESSES W -> SHOW NEW WINDOW Which should translate to something like SDL_Surface *screen -> SDL_PollEvent(&event) -> SDLK_w -> NewWindowRunning = true Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Yes if you are using SDL there is no reasy way to do it thoufh, what you could do is have an image whic you apply the surfaces to just before you bilt the screen.

Be like water my friend.

Share this post


Link to post
Share on other sites
Uhm, any other available help? The above post didn't really help.. at all. Nor did I think it's even an actual answer (no offense net-ninja). Thanks :(.

Share this post


Link to post
Share on other sites
The simple answer is no. SDL does not provide a GUI system. You can however create a window by placing the content of the window into a surface, and then blitting it to the screen (with some kind of border), which is what net-ninja was saying. It would be easier to just use a GUI toolkit that integrates with SDL (I know of GuiChan, but google will find more).

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!