SDL2 API: 02.Video - 01 - Display and Window Management Flashcards
(86 cards)
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.