SDL2 API: 02.Video - 02 - 2D Accelerated Rendering Flashcards

1
Q

SDL_ComposeCustomBlendMode

A

Compose a custom blend mode for renderers.

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

SDL_CreateRenderer

A

Create a 2D rendering context for a window.

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

SDL_CreateSoftwareRenderer

A

Create a 2D software rendering context for a surface.

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

SDL_CreateTexture

A

Create a texture for a rendering context.

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

SDL_CreateTextureFromSurface

A

Create a texture from an existing surface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
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
7
Q

SDL_DestroyRenderer

A

Destroy the rendering context for a window and free associated textures.

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

SDL_DestroyTexture

A

Destroy the specified texture.

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

SDL_GL_BindTexture

A

Bind an OpenGL/ES/ES2 texture to the current context for use with OpenGL instructions when rendering OpenGL primitives directly.

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

SDL_GL_UnbindTexture

A

Unbind an OpenGL/ES/ES2 texture from the current context.

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

SDL_GetNumRenderDrivers

A

Get the number of 2D rendering drivers available for the current display.

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

SDL_GetRenderDrawBlendMode

A

Get the blend mode used for drawing operations.

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

SDL_GetRenderDrawColor

A

Get the color used for drawing operations (Rect, Line and Clear).

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

SDL_GetRenderDriverInfo

A

Get information about a specific 2D rendering driver for the current display.

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

SDL_GetRenderTarget

A

Get the current render target.

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

SDL_GetRenderer

A

Get the renderer associated with a window.

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

SDL_GetRendererInfo

A

Get information about a rendering context.

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

SDL_GetRendererOutputSize

A

Get the output size in pixels of a rendering context.

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

SDL_GetTextureAlphaMod

A

Get the additional alpha value multiplied into render copy operations.

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

SDL_GetTextureBlendMode

A

Get the blend mode used for texture copy operations.

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

SDL_GetTextureColorMod

A

Get the additional color value multiplied into render copy operations.

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

SDL_LockTexture

A

Lock a portion of the texture for write-only pixel access.

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

SDL_QueryTexture

A

Query the attributes of a texture.

24
Q

SDL_RenderClear

A

Clear the current rendering target with the drawing color.

25
Q

SDL_RenderCopy

A

Copy a portion of the texture to the current rendering target.

26
Q

SDL_RenderCopyEx

A

Copy a portion of the texture to the current rendering target, optionally rotating it by angle around the given center and also flipping it top-bottom and/or left-right.

27
Q

SDL_RenderDrawLine

A

Draw a line on the current rendering target.

28
Q

SDL_RenderDrawLines

A

Draw a series of connected lines on the current rendering target.

29
Q

SDL_RenderDrawPoint

A

Draw a point on the current rendering target.

30
Q

SDL_RenderDrawPoints

A

Draw multiple points on the current rendering target.

31
Q

SDL_RenderDrawRect

A

Draw a rectangle on the current rendering target.

32
Q

SDL_RenderDrawRects

A

Draw some number of rectangles on the current rendering target.

33
Q

SDL_RenderFillRect

A

Fill a rectangle on the current rendering target with the drawing color.

34
Q

SDL_RenderFillRects

A

Fill some number of rectangles on the current rendering target with the drawing color.

35
Q

SDL_RenderGetClipRect

A

Get the clip rectangle for the current target.

36
Q

SDL_RenderGetIntegerScale

A

Get whether integer scales are forced for resolution-independent rendering.

37
Q

SDL_RenderGetLogicalSize

A

Get device independent resolution for rendering.

38
Q

SDL_RenderGetScale

A

Get the drawing scale for the current target.

39
Q

SDL_RenderGetViewport

A

Get the drawing area for the current target.

40
Q

SDL_RenderIsClipEnabled

A

Get whether clipping is enabled on the given renderer.

41
Q

SDL_RenderPresent

A

Update the screen with any rendering performed since the previous call.

42
Q

SDL_RenderReadPixels

A

Read pixels from the current rendering target.

43
Q

SDL_RenderSetClipRect

A

Set the clip rectangle for rendering on the specified target.

44
Q

SDL_RenderSetIntegerScale

A

Set whether to force integer scales for resolution-independent rendering.

45
Q

SDL_RenderSetLogicalSize

A

Set a device independent resolution for rendering.

46
Q

SDL_RenderSetScale

A

Set the drawing scale for rendering on the current target.

47
Q

SDL_RenderSetViewport

A

Set the drawing area for rendering on the current target.

48
Q

SDL_RenderTargetSupported

A

Determine whether a window supports the use of render targets.

49
Q

SDL_SetRenderDrawBlendMode

A

Set the blend mode used for drawing operations (Fill and Line).

50
Q

SDL_SetRenderDrawColor

A

Set the color used for drawing operations (Rect, Line and Clear).

51
Q

SDL_SetRenderTarget

A

Set a texture as the current rendering target.

52
Q

SDL_SetTextureAlphaMod

A

Set an additional alpha value multiplied into render copy operations.

53
Q

SDL_SetTextureBlendMode

A

Set the blend mode for a texture, used by SDL_RenderCopy().

54
Q

SDL_SetTextureColorMod

A

Set an additional color value multiplied into render copy operations.

55
Q

SDL_UnlockTexture

A

Unlock a texture, uploading the changes to video memory, if needed.

56
Q

SDL_UpdateTexture

A

Update the given texture rectangle with new pixel data.

57
Q

SDL_UpdateYUVTexture

A

Update a rectangle within a planar YV12 or IYUV texture with new pixel data.