Renderer.readPixels - multiple declarations
Function Renderer.readPixels
Wraps SDL_RenderReadPixels
which makes a dsdl
from the renderer's entire target
Parameters
Name | Description |
---|---|
format | requested dsdl of the returned dsdl |
Returns
dsdl
copy of the renderer's entire target
Throws
dsdl
if pixels failed to be read
Function Renderer.readPixels
Wraps SDL_RenderReadPixels
which makes a dsdl
from a specified dsdl
boundary at the
renderer's target
Parameters
Name | Description |
---|---|
rect | dsdl boundary to be read and copied |
format | requested dsdl of the returned dsdl |
Returns
dsdl
copy of the specified rectangle boundary in the renderer's target
Throws
dsdl
if pixels failed to be read