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


Public Member Functions | |
| GPUTextEngine (GPUDeviceParam device) | |
| Create a text engine for drawing text with the SDL GPU API. More... | |
| GPUTextEngine (PropertiesParam props) | |
| Create a text engine for drawing text with the SDL GPU API, with the specified properties. More... | |
| void | SetGPUWinding (GPUTextEngineWinding winding) |
| Sets the winding order of the vertices returned by Text.GetGPUDrawData for a particular GPU text engine. More... | |
| GPUTextEngineWinding | GetGPUWinding () const |
| Get the winding order of the vertices returned by Text.GetGPUDrawData for a particular GPU text engine. More... | |
| void | Destroy () final |
| Destroy a text engine created for drawing text with the SDL GPU API. More... | |
Public Member Functions inherited from SDL::TextEngine | |
| constexpr | TextEngine (std::nullptr_t=nullptr) noexcept |
| Default ctor. | |
| constexpr | TextEngine (const TextEngineRaw resource) noexcept |
| Constructs from TextEngineParam. More... | |
| constexpr | TextEngine (TextEngine &&other) noexcept |
| Move constructor. | |
| virtual | ~TextEngine ()=default |
| Destructor. | |
| constexpr TextEngine & | operator= (TextEngine &&other) noexcept |
| Assignment operator. | |
| constexpr TextEngineRaw | get () const noexcept |
| Retrieves underlying TextEngineRaw. | |
| constexpr TextEngineRaw | release () noexcept |
| Retrieves underlying TextEngineRaw and clear this. | |
| constexpr auto | operator<=> (const TextEngine &other) const noexcept=default |
| Comparison. | |
| constexpr | operator bool () const noexcept |
| Converts to bool. | |
| constexpr | operator TextEngineParam () const noexcept |
| 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... | |
Additional Inherited Members | |
Protected Member Functions inherited from SDL::TextEngine | |
| constexpr | TextEngine (const TextEngine &other) noexcept=default |
| Copy constructor. | |
| constexpr TextEngine & | operator= (const TextEngine &other) noexcept=default |
| Assignment operator. | |
|
inline |
| device | the GPUDevice to use for creating textures and drawing text. |
|
inline |
These are the supported properties:
prop::GpuTextEngine.DEVICE_POINTER: the GPUDevice to use for creating textures and drawing text.prop::GpuTextEngine.ATLAS_TEXTURE_SIZE_NUMBER: the size of the texture atlas| props | the properties to use. |