Define SDLPixelFormat for a SDLWindow


I’m trying to work with transparent PNGs, so now I’m trying to change the main window surface pixel format (SDL_PixelFormat). I tried to do it in many different ways, but none worked as expected.

What is the proper way to change the SDL_Window pixel format?

A code example is very welcome.