SDL Wiki
(This function is part of SDL_rtf, a separate library from SDL.)


Create an RTF display context, with the given font engine.


RTF_Context * RTF_CreateContext(SDL_Renderer *renderer, RTF_FontEngine *fontEngine);

Function Parameters

renderer an SDL renderer to use for drawing.
fontEngine the font engine to use for rendering text.

Return Value

Returns a new RTF display context, or NULL on error.


Once a context is created, it can be used to load and display text in Microsoft RTF format.


This function is available since SDL_rtf 3.0.0.


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.