pub unsafe extern "C" fn SDL_SetRenderTarget(
    renderer: *mut SDL_Renderer,
    texture: *mut SDL_Texture
) -> c_int
Expand description

Set a texture as the current rendering target.

  • renderer The renderer.
  • texture The targeted texture, which must be created with the SDL_TEXTUREACCESS_TARGET flag, or NULL for the default render target

Returns: 0 on success, or -1 on error

See Also: SDL_GetRenderTarget