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


CategoryAPI, CategoryVideo

SDL_SetWindowFullscreen (last edited 2011-04-22 17:03:25 by SheenaSmith)

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