sdlSetWindowFullscreen function

int sdlSetWindowFullscreen(
  1. Pointer<SdlWindow> window,
  2. int flags
)

Set a window's fullscreen state.

flags may be SDL_WINDOW_FULLSCREEN, for "real" fullscreen with a videomode change; SDL_WINDOW_FULLSCREEN_DESKTOP for "fake" fullscreen that takes the size of the desktop; and 0 for windowed mode.

\param window the window to change \param flags SDL_WINDOW_FULLSCREEN, SDL_WINDOW_FULLSCREEN_DESKTOP or 0 \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_GetWindowDisplayMode \sa SDL_SetWindowDisplayMode

extern DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window * window, Uint32 flags)

Implementation

int sdlSetWindowFullscreen(Pointer<SdlWindow> window, int flags) {
  final sdlSetWindowFullscreenLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlWindow> window, Uint32 flags),
      int Function(
          Pointer<SdlWindow> window, int flags)>('SDL_SetWindowFullscreen');
  return sdlSetWindowFullscreenLookupFunction(window, flags);
}