Jump to content
  • Advertisement
Sign in to follow this  
too_many_stars

SDL2 + Multiple Windows and focus

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

Hi guys,

 

A quick question with respect to SDL2 before I start making a window class.

 

I would like to have one window doing a simulation, and another specifically for rendering information, such as statistics regarding the simulation at the same time.

 

Is it possible to build two windows in SDL2, where both are active (have focus) at the same time, or will I be only able to view one?

 

Thanks,

 

Mike

Share this post


Link to post
Share on other sites
Advertisement
Only one window can ever have focus at a time. That's nothing to do with SDL and it doesn't affect rendering. You can render to multiple windows simultaneously just fine. Only the window with focus will receive input events, though.

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!