Mason Wheeler and Gabriel Jacobo contributed an API for rendering to
texture:
/**
- \brief Set a texture as the current rendering target.*
- \param texture The targeted texture, which must be created with the
SDL_TEXTUREACCESS_TARGET flag, or NULL for the default render target - \return 0 on success, or -1 on error
*/
int SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture);
You can check it out in the latest snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip
Cheers!