chickadee » sdl2 » render-target-set!

render-target rendererprocedure
render-target-set! renderer targetsetter
set! (render-target renderer) targetsetter

Get or set the renderer's render target, i.e. the texture that the renderer will render onto. See SDL_GetRenderTarget and SDL_SetRenderTarget. These procedures are available in sdl2 egg version 0.2.0 and higher.

render-target returns #f if the renderer has no render target.

The setters signal an exception of kind (exn sdl2) on failure, for example if the renderer does not support a render target. You should use render-target-supported? to test whether the renderer supports a render target.