Jump to content
  • Advertisement
Sign in to follow this  
skwee

Howto open child window with SDL?

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

Hello. I want to open child window, i mean for example like RPG games when u press FOR EXAMPLE shift+i it will open new window, your inventory, shift+s open new window your status and etc. How can i do it with SDL?

Share this post


Link to post
Share on other sites
Advertisement
I am fairly certain you cannot use SDL to open a "Windows" child window with the title bar, buttons etc.

The best way to go about this would probably be to whip it up from scratch. You will have to render the border, background, title bar, and contents yourself. Then give it a mechanism for communcating with the main application. It could get really complicated depending on how much you need from it.

Share this post


Link to post
Share on other sites
This isn't really supported with SDL, I believe.

Though I am pretty sure I have herd that there is a hack to open multipule windows. Though I really doubt you would really want to hack.


Chad.

Share this post


Link to post
Share on other sites
Jack Sotac Yes i mean in game windows.
What library you suggest? What is more suitable with SDL?
Thanks again

Share this post


Link to post
Share on other sites
Sorry I haven't worked with any of those libraries, I just know about them :) Guichan looks interesting though. I would suggest using the library that is easiest for you to use and fits with your existing code. Try them all since there're free:)

Good Luck.

Share this post


Link to post
Share on other sites
Hi, Minios.

This isn't possible with SDL to open native child window, but you can implement your own menu system that best suits your game, or you can use already developed system, like agar:
http://sourceforge.net/projects/agar

good luck! :)

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!