|
Size: 1107
Comment: Added Version section (Feedback 2015-09-23).
|
← Revision 15 as of 2016-04-15 21:36:24 ⇥
Size: 1112
Comment: Fixed spaces in Syntax section.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 12: | Line 12: |
| Uint32 flags) | Uint32 flags) |
SDL_SetWindowFullscreen
Use this function to set a window's fullscreen state.
Contents
Syntax
int SDL_SetWindowFullscreen(SDL_Window* window,
Uint32 flags)
Function Parameters
window |
the window to change |
flags |
SDL_WINDOW_FULLSCREEN, SDL_WINDOW_FULLSCREEN_DESKTOP or 0; see Remarks for details |
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
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.
Version
This function is available since SDL 2.0.0.
