SDL2, events, destroywindow()

Working on a project that requires me to alter variables through a pop up window interface, and I seem to be having problems closing specific windows.

I know SDL_Quit closes the entire application, but to destroy just one window SDL_DestroyWindow must be used.

My issue is that SDL_DestroyWindow() takes a data type of SDL_Window, but the command used to close the window by clicking on the x sends a data type of uint32 (event.window.windowid).

My question, how would one go about pluging in the windowID into the SDL_DestroyWindow function, or rather, how would one correlate between windowID and window definition?
SDL_GetWindowFromID()?
Sweet thanks! Do you know of a good source of documentation for SDL 2.0?
Topic archived. No new replies allowed.