• Advertisement

Archived

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

Embeding SDL surfaces in windows

This topic is 5060 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
No, SDL doesn''t support rendering to arbitrary windows like that. I believe some people have experimented with hacking such support in, though. Usually you let SDL render to its own window.

[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]

Share this post


Link to post
Share on other sites
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