Wiki Page Content

Differences between revisions 13 and 14
Revision 13 as of 2014-01-18 19:25:15
Size: 1352
Comment: Shortend row.
Revision 14 as of 2014-03-04 17:34:19
Size: 1527
Editor: nairou
Comment: Added remark regarding the need for an OpenGL context with SDL_WINDOW_OPENGL
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
''You can add useful comments here'' The SDL_WINDOW_OPENGL flag prepares your window for use with OpenGL, but you will still need to create an OpenGL context using [[SDL_GL_CreateContext]] after window creation, before calling any OpenGL functions.

SDL_WindowFlags

An enumeration of window states.

Values

SDL_WINDOW_FULLSCREEN

fullscreen window

SDL_WINDOW_FULLSCREEN_DESKTOP

fullscreen window at the current desktop resolution

SDL_WINDOW_OPENGL

window usable with OpenGL context

SDL_WINDOW_SHOWN

window is visible

SDL_WINDOW_HIDDEN

window is not visible

SDL_WINDOW_BORDERLESS

no window decoration

SDL_WINDOW_RESIZABLE

window can be resized

SDL_WINDOW_MINIMIZED

window is minimized

SDL_WINDOW_MAXIMIZED

window is maximized

SDL_WINDOW_INPUT_GRABBED

window has grabbed input focus

SDL_WINDOW_INPUT_FOCUS

window has input focus

SDL_WINDOW_MOUSE_FOCUS

window has mouse focus

SDL_WINDOW_FOREIGN

window not created by SDL

SDL_WINDOW_ALLOW_HIGHDPI

window should be created in high-DPI mode if supported (>= SDL 2.0.1)

Code Examples

You can add your code example here

Remarks

The SDL_WINDOW_OPENGL flag prepares your window for use with OpenGL, but you will still need to create an OpenGL context using SDL_GL_CreateContext after window creation, before calling any OpenGL functions.


CategoryEnum, CategoryVideo

None: SDL_WindowFlags (last edited 2020-05-05 16:43:10 by ChrisBush)

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