libsdl-org / sdlwiki

This is the raw contents of SDL's wiki. You can edit this through GitHub or at https://wiki.libsdl.org/ now!
https://wiki.libsdl.org/
83 stars 41 forks source link

Feedback on page SDL3/SDL_GetWindowWMInfo #443

Closed c-smile closed 6 months ago

c-smile commented 1 year ago

this is incorrect:

SDL_VERSION(&info.version); 

SDL_VERSION expects a SDL_version struct to initialize but info.version is an int.

slouken commented 1 year ago

This function is actually gone in SDL3.

@icculus, is there any way to automate new/removed function synchronization between the Wiki and headers?

c-smile commented 1 year ago

If not SDL_GetWindowWMInfo then how to get platform HWND?

slouken commented 1 year ago

If you're ever curious about API changes in SDL3, you can look them up in README-migration.md: https://github.com/libsdl-org/SDL/blob/main/docs/README-migration.md#sdl_syswmh

icculus commented 1 year ago

I never wrote the code to remove pages because it's risky and before SDL3 we never removed anything. :)

We could probably just delete everything, run the bridge, and see what pages git sees are still missing afterwards...then we just remove+commit what's appropriate.

slouken commented 1 year ago

Yeah, that sounds like a good plan.

icculus commented 6 months ago

This (and all the other no-longer-existing function pages) are gone now.

And, in case you missed it, you can get the HWND with the SDL_PROP_WINDOW_WIN32_HWND_POINTER property with the object returned by SDL_GetWindowProperties.