Set the text of an RTF context, with data loaded from a filename.
int RTF_Load(RTF_Context *ctx, const char *file);
ctx | the RTF context to update. |
file | the file path to load RTF data from. |
Returns 0 on success, -1 on failure.
This can be called multiple times to change the text displayed.
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.