sdlHasWindowSurface function
Return whether the window has a surface associated with it.
\returns SDL_TRUE if there is a surface associated with the window, or SDL_FALSE otherwise.
\since This function is available since SDL 2.28.0.
\sa SDL_GetWindowSurface
extern DECLSPEC SDL_bool SDLCALL SDL_HasWindowSurface(SDL_Window *window)
Implementation
bool sdlHasWindowSurface(Pointer<SdlWindow> window) {
final sdlHasWindowSurfaceLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlWindow> window),
int Function(Pointer<SdlWindow> window)>('SDL_HasWindowSurface');
return sdlHasWindowSurfaceLookupFunction(window) == 1;
}