|
Size: 907
Comment: Update WindowID > Window*
|
Size: 837
Comment: update content (w/ Sam); remove 'draft' note
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%"style="color: rgb(255, 0, 0); text-align: center;">DRAFT|| | |
| Line 17: | Line 16: |
| ||'''window'''||the type used to identify the window|| ||'''fullscreen'''|||| |
||'''window'''||the window to set|| ||'''fullscreen'''||1 for fullscreen or 0 for windowed|| |
| Line 21: | Line 20: |
| Returns 0 on success or -1 if setting the display mode failed; call [[SDL_GetError]]() for more information. | Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information. |
SDL_SetWindowFullscreen
Use this function to set the window's fullscreen state.
Contents
Syntax
int SDL_SetWindowFullscreen(SDL_Window* window,
int fullscreen)
Function Parameters
window |
the window to set |
fullscreen |
1 for fullscreen or 0 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
