Wiki Page Content

Differences between revisions 12 and 13
Revision 12 as of 2011-04-22 17:03:25
Size: 849
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Revision 13 as of 2013-06-08 11:03:36
Size: 1045
Comment: change bool to Unit32 for second argument
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
                            SDL_bool fullscreen)                             Uint32 flags)
Line 17: Line 17:
||'''fullscreen'''||SDL_TRUE for fullscreen or SDL_FALSE for windowed|| ||'''flags'''||SDL_WINDOW_FULLSCREEN, SDL_WINDOW_FULLSCREEN_DESKTOP or 0; see [[#Remarks|Remarks]] for details||
Line 28: Line 28:
''You can add useful comments here'' '''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.

SDL_SetWindowFullscreen

Use this function to set a window's fullscreen state.

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.


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