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

(57 cards)

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
SDL_RenderCopy
Copy a portion of the texture to the current rendering target.
26
SDL_RenderCopyEx
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
SDL_RenderDrawLine
Draw a line on the current rendering target.
28
SDL_RenderDrawLines
Draw a series of connected lines on the current rendering target.
29
SDL_RenderDrawPoint
Draw a point on the current rendering target.
30
SDL_RenderDrawPoints
Draw multiple points on the current rendering target.
31
SDL_RenderDrawRect
Draw a rectangle on the current rendering target.
32
SDL_RenderDrawRects
Draw some number of rectangles on the current rendering target.
33
SDL_RenderFillRect
Fill a rectangle on the current rendering target with the drawing color.
34
SDL_RenderFillRects
Fill some number of rectangles on the current rendering target with the drawing color.
35
SDL_RenderGetClipRect
Get the clip rectangle for the current target.
36
SDL_RenderGetIntegerScale
Get whether integer scales are forced for resolution-independent rendering.
37
SDL_RenderGetLogicalSize
Get device independent resolution for rendering.
38
SDL_RenderGetScale
Get the drawing scale for the current target.
39
SDL_RenderGetViewport
Get the drawing area for the current target.
40
SDL_RenderIsClipEnabled
Get whether clipping is enabled on the given renderer.
41
SDL_RenderPresent
Update the screen with any rendering performed since the previous call.
42
SDL_RenderReadPixels
Read pixels from the current rendering target.
43
SDL_RenderSetClipRect
Set the clip rectangle for rendering on the specified target.
44
SDL_RenderSetIntegerScale
Set whether to force integer scales for resolution-independent rendering.
45
SDL_RenderSetLogicalSize
Set a device independent resolution for rendering.
46
SDL_RenderSetScale
Set the drawing scale for rendering on the current target.
47
SDL_RenderSetViewport
Set the drawing area for rendering on the current target.
48
SDL_RenderTargetSupported
Determine whether a window supports the use of render targets.
49
SDL_SetRenderDrawBlendMode
Set the blend mode used for drawing operations (Fill and Line).
50
SDL_SetRenderDrawColor
Set the color used for drawing operations (Rect, Line and Clear).
51
SDL_SetRenderTarget
Set a texture as the current rendering target.
52
SDL_SetTextureAlphaMod
Set an additional alpha value multiplied into render copy operations.
53
SDL_SetTextureBlendMode
Set the blend mode for a texture, used by SDL_RenderCopy().
54
SDL_SetTextureColorMod
Set an additional color value multiplied into render copy operations.
55
SDL_UnlockTexture
Unlock a texture, uploading the changes to video memory, if needed.
56
SDL_UpdateTexture
Update the given texture rectangle with new pixel data.
57
SDL_UpdateYUVTexture
Update a rectangle within a planar YV12 or IYUV texture with new pixel data.