Sign in to follow this  

[SDL] Creating a child window...

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

This topic is 3306 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this