Set the text of an RTF context, with data loaded from an SDL_IOStream.
Defined in <SDL3_rtf/SDL_rtf.h>
bool RTF_Load_IO(RTF_Context *ctx, SDL_IOStream *src, bool closeio);| RTF_Context * | ctx | the RTF context to update. |
| SDL_IOStream * | src | the SDL_IOStream to load RTF data from. |
| bool | closeio | true to close src when the font is closed, false to leave it open. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
This can be called multiple times to change the text displayed.
If closeio is true, this function will close src, whether this function succeeded or not.
On failure, call RTF_GetError() to get a human-readable text message corresponding to the error.
This function is available since SDL_rtf 3.0.0.