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

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
Q

SDL_GetCurrentVideoDriver

A

Get the name of the currently initialized video driver.

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

SDL_GetDesktopDisplayMode

A

Get information about the desktop display mode.

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

SDL_GetDisplayBounds

A

Get the desktop area represented by a display, with the primary display located at 0,0.

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

SDL_GetDisplayDPI

A

Get the dots/pixels-per-inch for a display.

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

SDL_GetDisplayMode

A

Get information about a specific display mode.

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

SDL_GetDisplayName

A

Get the name of a display in UTF-8 encoding.

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

SDL_GetDisplayUsableBounds

A

Get the usable desktop area represented by a display, with the primary display located at 0,0.

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

SDL_GetGrabbedWindow

A

Get the window that currently has an input grab enabled.

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

SDL_GetNumDisplayModes

A

Get the number of available display modes.

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

SDL_GetNumVideoDisplays

A

Get the number of available video displays.

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

SDL_GetNumVideoDrivers

A

Get the number of video drivers compiled into SDL.

36
Q

SDL_GetVideoDriver

A

Get the name of a built in video driver.

37
Q

SDL_GetWindowBordersSize

A

Get the size of a window’s borders (decorations) around the client area.

38
Q

SDL_GetWindowBrightness

A

Get the brightness (gamma multiplier) for the display that owns a given window.

39
Q

SDL_GetWindowData

A

Get the data pointer associated with a window.

40
Q

SDL_GetWindowDisplayIndex

A

Get the index of the display associated with a window.

41
Q

SDL_GetWindowDisplayMode

A

Fill in information about the display mode to use when a window is visible at fullscreen.

42
Q

SDL_GetWindowFlags

A

Get the window flags.

43
Q

SDL_GetWindowFromID

A

Get a window from a stored ID.

44
Q

SDL_GetWindowGammaRamp

A

Get the gamma ramp for the display that owns a given window.

45
Q

SDL_GetWindowGrab

A

Get a window’s input grab mode.

46
Q

SDL_GetWindowID

A

Get the numeric ID of a window, for logging purposes.

47
Q

SDL_GetWindowMaximumSize

A

Get the maximum size of a window’s client area.

48
Q

SDL_GetWindowMinimumSize

A

Get the minimum size of a window’s client area.

49
Q

SDL_GetWindowOpacity

A

Get the opacity of a window.

50
Q

SDL_GetWindowPixelFormat

A

Get the pixel format associated with the window.

51
Q

SDL_GetWindowPosition

A

Get the position of a window.

52
Q

SDL_GetWindowSize

A

Get the size of a window’s client area.

53
Q

SDL_GetWindowSurface

A

Get the SDL surface associated with the window.

54
Q

SDL_GetWindowTitle

A

Get the title of a window.

55
Q

SDL_GetWindowWMInfo

A

Get driver specific information about a window.

56
Q

SDL_HideWindow

A

Hide a window.

57
Q

SDL_IsScreenSaverEnabled

A

Check whether the screensaver is currently enabled.

58
Q

SDL_MaximizeWindow

A

Make a window as large as possible.

59
Q

SDL_MinimizeWindow

A

Minimize a window to an iconic representation.

60
Q

SDL_RaiseWindow

A

Raise a window above other windows and set the input focus.

61
Q

SDL_RestoreWindow

A

Restore the size and position of a minimized or maximized window.

62
Q

SDL_SetWindowBordered

A

Set the border state of a window.

63
Q

SDL_SetWindowBrightness

A

Set the brightness (gamma multiplier) for the display that owns a given window.

64
Q

SDL_SetWindowData

A

Associate an arbitrary named pointer with a window.

65
Q

SDL_SetWindowDisplayMode

A

Set the display mode to use when a window is visible at fullscreen.

66
Q

SDL_SetWindowFullscreen

A

Set a window’s fullscreen state.

67
Q

SDL_SetWindowGammaRamp

A

Set the gamma ramp for the display that owns a given window.

68
Q

SDL_SetWindowGrab

A

Set a window’s input grab mode.

69
Q

SDL_SetWindowHitTest

A

Provide a callback that decides if a window region has special properties.

70
Q

SDL_SetWindowIcon

A

Set the icon for a window.

71
Q

SDL_SetWindowInputFocus

A

Explicitly set input focus to the window.

72
Q

SDL_SetWindowMaximumSize

A

Set the maximum size of a window’s client area.

73
Q

SDL_SetWindowMinimumSize

A

Set the minimum size of a window’s client area.

74
Q

SDL_SetWindowModalFor

A

Set the window as a modal for another window.

75
Q

SDL_SetWindowOpacity

A

Set the opacity for a window.

76
Q

SDL_SetWindowPosition

A

Set the position of a window.

77
Q

SDL_SetWindowResizable

A

Set the user-resizable state of a window.

78
Q

SDL_SetWindowSize

A

Set the size of a window’s client area.

79
Q

SDL_SetWindowTitle

A

Set the title of a window.

80
Q

SDL_ShowMessageBox

A

Create a modal message box.

81
Q

SDL_ShowSimpleMessageBox

A

Display a simple modal message box.

82
Q

SDL_ShowWindow

A

Show a window.

83
Q

SDL_UpdateWindowSurface

A

Copy the window surface to the screen.

84
Q

SDL_UpdateWindowSurfaceRects

A

Copy areas of the window surface to the screen.

85
Q

SDL_VideoInit

A

Initialize the video subsystem, optionally specifying a video driver.

86
Q

SDL_VideoQuit

A

Shut down the video subsystem, if initialized with SDL_VideoInit().