- render-target rendererprocedure
- set! (render-target renderer) targetsetter
- render-target-set! 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.
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.
Requires sdl2 egg 0.2.0 or higher.