SDL2 API: 02.Video - 01 - Display and Window Management Flashcards
SDL_CreateWindow
Create a window with the specified position, dimensions, and flags.
SDL_CreateWindowAndRenderer
Create a window and default renderer.
SDL_CreateWindowFrom
Create an SDL window from an existing native window.
SDL_DestroyWindow
Destroy a window.
SDL_DisableScreenSaver
Prevent the screen from being blanked by a screen saver.
SDL_EnableScreenSaver
Allow the screen to be blanked by a screen saver.
SDL_GL_CreateContext
Create an OpenGL context for use with an OpenGL window, and make it current.
SDL_GL_DeleteContext
Delete an OpenGL context.
SDL_GL_ExtensionSupported
Check if an OpenGL extension is supported for the current context.
SDL_GL_GetAttribute
Get the actual value for an attribute from the current context.
SDL_GL_GetCurrentContext
Get the currently active OpenGL context.
SDL_GL_GetCurrentWindow
Get the currently active OpenGL window.
SDL_GL_GetDrawableSize
Get the size of a window’s underlying drawable in pixels (for use with glViewport).
SDL_GL_GetProcAddress
Get an OpenGL function by name.
SDL_GL_GetSwapInterval
Get the swap interval for the current OpenGL context.
SDL_GL_LoadLibrary
Dynamically load an OpenGL library.
SDL_GL_MakeCurrent
Set up an OpenGL context for rendering into an OpenGL window.
SDL_GL_ResetAttributes
Reset all previously set OpenGL context attributes to their default values.
SDL_GL_SetAttribute
Set an OpenGL window attribute before window creation.
SDL_GL_SetSwapInterval
Set the swap interval for the current OpenGL context.
SDL_GL_SwapWindow
Update a window with OpenGL rendering.
SDL_GL_UnloadLibrary
Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary().
SDL_GetClosestDisplayMode
Get the closest match to the requested display mode.
SDL_GetCurrentDisplayMode
Get information about the current display mode.
SDL_GetCurrentVideoDriver
Get the name of the currently initialized video driver.
SDL_GetDesktopDisplayMode
Get information about the desktop display mode.
SDL_GetDisplayBounds
Get the desktop area represented by a display, with the primary display located at 0,0.
SDL_GetDisplayDPI
Get the dots/pixels-per-inch for a display.
SDL_GetDisplayMode
Get information about a specific display mode.
SDL_GetDisplayName
Get the name of a display in UTF-8 encoding.
SDL_GetDisplayUsableBounds
Get the usable desktop area represented by a display, with the primary display located at 0,0.
SDL_GetGrabbedWindow
Get the window that currently has an input grab enabled.
SDL_GetNumDisplayModes
Get the number of available display modes.
SDL_GetNumVideoDisplays
Get the number of available video displays.