SDL_SetWindowFullscreen
Use this function to set a window's fullscreen state.
Syntax
int SDL_SetWindowFullscreen(SDL_Window* window,
SDL_bool fullscreen)
Function Parameters
window |
the window to change |
fullscreen |
SDL_TRUE for fullscreen or SDL_FALSE for windowed |
Return Value
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
You can add useful comments here