sdlGetWindowDisplayMode function
Query the display mode to use when a window is visible at fullscreen.
\param window the window to query \param mode an SDL_DisplayMode structure filled in with the fullscreen display mode \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.0.0.
\sa SDL_SetWindowDisplayMode \sa SDL_SetWindowFullscreen
extern DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window * window, SDL_DisplayMode * mode)
Implementation
int sdlGetWindowDisplayMode(
Pointer<SdlWindow> window, Pointer<SdlDisplayMode> mode) {
final sdlGetWindowDisplayModeLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlWindow> window, Pointer<SdlDisplayMode> mode),
int Function(Pointer<SdlWindow> window,
Pointer<SdlDisplayMode> mode)>('SDL_GetWindowDisplayMode');
return sdlGetWindowDisplayModeLookupFunction(window, mode);
}