SDL2 API: 02.Video - 01 - Display and Window Management Flashcards

(86 cards)

1
Q

SDL_CreateWindow

A

Create a window with the specified position, dimensions, and flags.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SDL_CreateWindowAndRenderer

A

Create a window and default renderer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SDL_CreateWindowFrom

A

Create an SDL window from an existing native window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SDL_DestroyWindow

A

Destroy a window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SDL_DisableScreenSaver

A

Prevent the screen from being blanked by a screen saver.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

SDL_EnableScreenSaver

A

Allow the screen to be blanked by a screen saver.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SDL_GL_CreateContext

A

Create an OpenGL context for use with an OpenGL window, and make it current.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SDL_GL_DeleteContext

A

Delete an OpenGL context.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

SDL_GL_ExtensionSupported

A

Check if an OpenGL extension is supported for the current context.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

SDL_GL_GetAttribute

A

Get the actual value for an attribute from the current context.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

SDL_GL_GetCurrentContext

A

Get the currently active OpenGL context.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

SDL_GL_GetCurrentWindow

A

Get the currently active OpenGL window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

SDL_GL_GetDrawableSize

A

Get the size of a window’s underlying drawable in pixels (for use with glViewport).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

SDL_GL_GetProcAddress

A

Get an OpenGL function by name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

SDL_GL_GetSwapInterval

A

Get the swap interval for the current OpenGL context.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

SDL_GL_LoadLibrary

A

Dynamically load an OpenGL library.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

SDL_GL_MakeCurrent

A

Set up an OpenGL context for rendering into an OpenGL window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

SDL_GL_ResetAttributes

A

Reset all previously set OpenGL context attributes to their default values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

SDL_GL_SetAttribute

A

Set an OpenGL window attribute before window creation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

SDL_GL_SetSwapInterval

A

Set the swap interval for the current OpenGL context.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

SDL_GL_SwapWindow

A

Update a window with OpenGL rendering.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

SDL_GL_UnloadLibrary

A

Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

SDL_GetClosestDisplayMode

A

Get the closest match to the requested display mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

SDL_GetCurrentDisplayMode

A

Get information about the current display mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
SDL_GetCurrentVideoDriver
Get the name of the currently initialized video driver.
26
SDL_GetDesktopDisplayMode
Get information about the desktop display mode.
27
SDL_GetDisplayBounds
Get the desktop area represented by a display, with the primary display located at 0,0.
28
SDL_GetDisplayDPI
Get the dots/pixels-per-inch for a display.
29
SDL_GetDisplayMode
Get information about a specific display mode.
30
SDL_GetDisplayName
Get the name of a display in UTF-8 encoding.
31
SDL_GetDisplayUsableBounds
Get the usable desktop area represented by a display, with the primary display located at 0,0.
32
SDL_GetGrabbedWindow
Get the window that currently has an input grab enabled.
33
SDL_GetNumDisplayModes
Get the number of available display modes.
34
SDL_GetNumVideoDisplays
Get the number of available video displays.
35
SDL_GetNumVideoDrivers
Get the number of video drivers compiled into SDL.
36
SDL_GetVideoDriver
Get the name of a built in video driver.
37
SDL_GetWindowBordersSize
Get the size of a window's borders (decorations) around the client area.
38
SDL_GetWindowBrightness
Get the brightness (gamma multiplier) for the display that owns a given window.
39
SDL_GetWindowData
Get the data pointer associated with a window.
40
SDL_GetWindowDisplayIndex
Get the index of the display associated with a window.
41
SDL_GetWindowDisplayMode
Fill in information about the display mode to use when a window is visible at fullscreen.
42
SDL_GetWindowFlags
Get the window flags.
43
SDL_GetWindowFromID
Get a window from a stored ID.
44
SDL_GetWindowGammaRamp
Get the gamma ramp for the display that owns a given window.
45
SDL_GetWindowGrab
Get a window's input grab mode.
46
SDL_GetWindowID
Get the numeric ID of a window, for logging purposes.
47
SDL_GetWindowMaximumSize
Get the maximum size of a window's client area.
48
SDL_GetWindowMinimumSize
Get the minimum size of a window's client area.
49
SDL_GetWindowOpacity
Get the opacity of a window.
50
SDL_GetWindowPixelFormat
Get the pixel format associated with the window.
51
SDL_GetWindowPosition
Get the position of a window.
52
SDL_GetWindowSize
Get the size of a window's client area.
53
SDL_GetWindowSurface
Get the SDL surface associated with the window.
54
SDL_GetWindowTitle
Get the title of a window.
55
SDL_GetWindowWMInfo
Get driver specific information about a window.
56
SDL_HideWindow
Hide a window.
57
SDL_IsScreenSaverEnabled
Check whether the screensaver is currently enabled.
58
SDL_MaximizeWindow
Make a window as large as possible.
59
SDL_MinimizeWindow
Minimize a window to an iconic representation.
60
SDL_RaiseWindow
Raise a window above other windows and set the input focus.
61
SDL_RestoreWindow
Restore the size and position of a minimized or maximized window.
62
SDL_SetWindowBordered
Set the border state of a window.
63
SDL_SetWindowBrightness
Set the brightness (gamma multiplier) for the display that owns a given window.
64
SDL_SetWindowData
Associate an arbitrary named pointer with a window.
65
SDL_SetWindowDisplayMode
Set the display mode to use when a window is visible at fullscreen.
66
SDL_SetWindowFullscreen
Set a window's fullscreen state.
67
SDL_SetWindowGammaRamp
Set the gamma ramp for the display that owns a given window.
68
SDL_SetWindowGrab
Set a window's input grab mode.
69
SDL_SetWindowHitTest
Provide a callback that decides if a window region has special properties.
70
SDL_SetWindowIcon
Set the icon for a window.
71
SDL_SetWindowInputFocus
Explicitly set input focus to the window.
72
SDL_SetWindowMaximumSize
Set the maximum size of a window's client area.
73
SDL_SetWindowMinimumSize
Set the minimum size of a window's client area.
74
SDL_SetWindowModalFor
Set the window as a modal for another window.
75
SDL_SetWindowOpacity
Set the opacity for a window.
76
SDL_SetWindowPosition
Set the position of a window.
77
SDL_SetWindowResizable
Set the user-resizable state of a window.
78
SDL_SetWindowSize
Set the size of a window's client area.
79
SDL_SetWindowTitle
Set the title of a window.
80
SDL_ShowMessageBox
Create a modal message box.
81
SDL_ShowSimpleMessageBox
Display a simple modal message box.
82
SDL_ShowWindow
Show a window.
83
SDL_UpdateWindowSurface
Copy the window surface to the screen.
84
SDL_UpdateWindowSurfaceRects
Copy areas of the window surface to the screen.
85
SDL_VideoInit
Initialize the video subsystem, optionally specifying a video driver.
86
SDL_VideoQuit
Shut down the video subsystem, if initialized with SDL_VideoInit().