Jump to content
  • Advertisement

Archived

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

Dospro

SDL in windows

This topic is 5091 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. I want to ask a llitle question. Is there anyway to put the SDL windows in a windows window??? I mean, instead of open its own SDL window, i want that the graphics draw in the my windows window. Is there anyway to do that?

Share this post


Link to post
Share on other sites
Advertisement
Hi,

Check out ftp://ptah.lnf.kth.se/pub/misc/sdl-env-vars, the last variable is SDL_WINDOWID. If you fill this environment variable, you're supposed to get the results you're looking for.

I'm no SDL expert...

Hope this helps

Cheers

e.

Share this post


Link to post
Share on other sites
Quote:
Original post by Dospro
instead of open its own SDL window, i want that the graphics draw in the my windows window.


As that above said, you'll be using a window ID environment variable.

it works like this:

create your main window, create the "child" window within that window that you want SDL to draw into (or use the main window, but that doesn't get you anything over using SDL's method, does it?), then you're going to put the window ID (presumabley the HWND on windows? i'm unsure) into the environment variable, THEN you're oging to initialize SDL video stuff.

and remember to SDL_Quit or that other one that's something like SDL_ShutdownSubsystem or something before you delete the window you have it rendering in.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Did anyone notice that the FAQ had a texture behind it? Hurts my eyes...isn't that like a huge "F in the class" failure for web design? And this is Microsoft? Or is it subdued enough? Just my observation.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!