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.
SDL_GetNumVideoDrivers
Get the number of video drivers compiled into SDL.
SDL_GetVideoDriver
Get the name of a built in video driver.
SDL_GetWindowBordersSize
Get the size of a window’s borders (decorations) around the client area.
SDL_GetWindowBrightness
Get the brightness (gamma multiplier) for the display that owns a given window.
SDL_GetWindowData
Get the data pointer associated with a window.
SDL_GetWindowDisplayIndex
Get the index of the display associated with a window.
SDL_GetWindowDisplayMode
Fill in information about the display mode to use when a window is visible at fullscreen.
SDL_GetWindowFlags
Get the window flags.
SDL_GetWindowFromID
Get a window from a stored ID.
SDL_GetWindowGammaRamp
Get the gamma ramp for the display that owns a given window.
SDL_GetWindowGrab
Get a window’s input grab mode.
SDL_GetWindowID
Get the numeric ID of a window, for logging purposes.
SDL_GetWindowMaximumSize
Get the maximum size of a window’s client area.
SDL_GetWindowMinimumSize
Get the minimum size of a window’s client area.
SDL_GetWindowOpacity
Get the opacity of a window.
SDL_GetWindowPixelFormat
Get the pixel format associated with the window.
SDL_GetWindowPosition
Get the position of a window.
SDL_GetWindowSize
Get the size of a window’s client area.
SDL_GetWindowSurface
Get the SDL surface associated with the window.
SDL_GetWindowTitle
Get the title of a window.
SDL_GetWindowWMInfo
Get driver specific information about a window.
SDL_HideWindow
Hide a window.
SDL_IsScreenSaverEnabled
Check whether the screensaver is currently enabled.
SDL_MaximizeWindow
Make a window as large as possible.
SDL_MinimizeWindow
Minimize a window to an iconic representation.
SDL_RaiseWindow
Raise a window above other windows and set the input focus.
SDL_RestoreWindow
Restore the size and position of a minimized or maximized window.
SDL_SetWindowBordered
Set the border state of a window.
SDL_SetWindowBrightness
Set the brightness (gamma multiplier) for the display that owns a given window.
SDL_SetWindowData
Associate an arbitrary named pointer with a window.
SDL_SetWindowDisplayMode
Set the display mode to use when a window is visible at fullscreen.
SDL_SetWindowFullscreen
Set a window’s fullscreen state.
SDL_SetWindowGammaRamp
Set the gamma ramp for the display that owns a given window.
SDL_SetWindowGrab
Set a window’s input grab mode.
SDL_SetWindowHitTest
Provide a callback that decides if a window region has special properties.
SDL_SetWindowIcon
Set the icon for a window.
SDL_SetWindowInputFocus
Explicitly set input focus to the window.
SDL_SetWindowMaximumSize
Set the maximum size of a window’s client area.
SDL_SetWindowMinimumSize
Set the minimum size of a window’s client area.
SDL_SetWindowModalFor
Set the window as a modal for another window.
SDL_SetWindowOpacity
Set the opacity for a window.
SDL_SetWindowPosition
Set the position of a window.
SDL_SetWindowResizable
Set the user-resizable state of a window.
SDL_SetWindowSize
Set the size of a window’s client area.
SDL_SetWindowTitle
Set the title of a window.
SDL_ShowMessageBox
Create a modal message box.
SDL_ShowSimpleMessageBox
Display a simple modal message box.
SDL_ShowWindow
Show a window.
SDL_UpdateWindowSurface
Copy the window surface to the screen.
SDL_UpdateWindowSurfaceRects
Copy areas of the window surface to the screen.
SDL_VideoInit
Initialize the video subsystem, optionally specifying a video driver.
SDL_VideoQuit
Shut down the video subsystem, if initialized with SDL_VideoInit().