sdlDestroyWindowSurface function
Destroy the surface associated with the window.
\param window the window to update \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.28.0.
\sa SDL_GetWindowSurface \sa SDL_HasWindowSurface
extern DECLSPEC int SDLCALL SDL_DestroyWindowSurface(SDL_Window *window)
Implementation
int sdlDestroyWindowSurface(Pointer<SdlWindow> window) {
final sdlDestroyWindowSurfaceLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlWindow> window),
int Function(Pointer<SdlWindow> window)>('SDL_DestroyWindowSurface');
return sdlDestroyWindowSurfaceLookupFunction(window);
}