Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Drakkcon

Embeding SDL surfaces in windows

This topic is 5301 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 to give control of a window I made to SDL. I know I can give this DirectX surface property to a window, and I know the same thing is possible with OpenGl, but what about SDL? The true general first seeks victory, then seeks battle - Sun Tzu [edited by - Drakkcon on April 13, 2004 4:50:26 PM]

Share this post


Link to post
Share on other sites
Advertisement
Actually, you can do it. But you can only have 1 window at a time (with SDL running on it; otherwise you can have as many windows as you want). But you have to remember, SDL was meant to be cross-platform.

I don't have the source files at this time, but I know it requires setting an environment variable. If I find the source, I'll post it here.

Edit:
http://sdldoc.csn.ul.ie/sdlenvvars.php

Look at: SDL_WINDOWID

Hope that helps.

[edited by - MetaCipher on April 13, 2004 7:55:59 PM]

Share this post


Link to post
Share on other sites

  • 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!