SDL_WINDOWID equivalent in SDL2

Hello all,

Is it possible to embed a SDL2’s SDL_Window into another GUI Window? If so, how has it changed from SDL 1.2?

I have an old app that uses SDL 1.2 which I would like to update to SDL2. The app sets the SDL_WINDOWID environment variable before initialising SDL.I
have grep’d the source for “SDL_WINDOWID” as well as getenv(), however, I do not see this environment variable or something that could be related.

Any pointers would be greatly appreciated. Thanks.

Cheers,

Alvin

Moments after sending the email, I found SDL_CreateWindowFrom() and test/testnative.c. Sorry for the noise.

AlvinOn 22/07/14 14:33, Alvin Beach wrote:

Hello all,

Is it possible to embed a SDL2’s SDL_Window into another GUI Window? If so, how has it changed from SDL 1.2?

[snip]