Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2010-01-21 17:43:28
Size: 907
Editor: SheenaSmith
Comment: Update WindowID > Window*
Revision 5 as of 2010-09-03 23:30:59
Size: 837
Editor: SheenaSmith
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.

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


CategoryAPI, CategoryVideo

None: SDL_SetWindowFullscreen (last edited 2016-04-15 21:36:24 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit