|
SDL3pp
A slim C++ wrapper for SDL3
|
A renderer based text engine.


Public Member Functions | |
| RendererTextEngine (RendererParam renderer) | |
| Create a text engine for drawing text on an SDL renderer. More... | |
| RendererTextEngine (PropertiesParam props) | |
| Create a text engine for drawing text on an SDL renderer, with the specified properties. More... | |
| void | Destroy () final |
| Destroy a text engine created for drawing text on an SDL renderer. More... | |
Public Member Functions inherited from SDL::TextEngine | |
| constexpr | TextEngine ()=default |
| Default ctor. | |
| constexpr | TextEngine (const TextEngineRaw resource) |
| Constructs from TextEngineParam. More... | |
| constexpr | TextEngine (const TextEngine &other)=delete |
| Copy constructor. | |
| constexpr | TextEngine (TextEngine &&other) |
| Move constructor. | |
| virtual | ~TextEngine ()=default |
| Destructor. | |
| TextEngine & | operator= (TextEngine &&other) |
| Assignment operator. | |
| TextEngine & | operator= (const TextEngine &other)=delete |
| Assignment operator. | |
| constexpr TextEngineRaw | get () const |
| Retrieves underlying TextEngineRaw. | |
| constexpr TextEngineRaw | release () |
| Retrieves underlying TextEngineRaw and clear this. | |
| constexpr auto | operator<=> (const TextEngine &other) const =default |
| Comparison. | |
| constexpr bool | operator== (std::nullptr_t _) const |
| Comparison. | |
| constexpr | operator bool () const |
| Converts to bool. | |
| constexpr | operator TextEngineParam () const |
| Converts to TextEngineParam. | |
| virtual void | Destroy ()=0 |
| frees up textEngine. Pure virtual More... | |
| Text | CreateText (FontParam font, std::string_view text) |
| Create a text object from UTF-8 text and a text engine. More... | |
|
inline |
| renderer | the renderer to use for creating textures and drawing text. |
|
inline |
These are the supported properties:
prop::RendererTextEngine.RENDERER_POINTER: the renderer to use for creating textures and drawing textprop::RendererTextEngine.ATLAS_TEXTURE_SIZE_NUMBER: the size of the texture atlas| props | the properties to use. |