|
constexpr | TextEngineBase (TTF_TextEngine *engine, void(*destroy)(TTF_TextEngine *engine)) |
| Create from engine and custom destroyer.
|
|
void | SetGPUWinding (GPUTextEngineWinding winding) |
| Sets the winding order of the vertices returned by TextBase.GetGPUDrawData for a particular GPU text engine.
|
|
GPUTextEngineWinding | GetGPUWinding () const |
| Get the winding order of the vertices returned by TextBase.GetGPUDrawData for a particular GPU text engine.
|
|
constexpr | Resource (T resource={}) |
| Constructs the underlying resource.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
| Resource (const Resource &other)=delete |
|
| Resource (Resource &&other)=delete |
|
constexpr | Resource (TTF_TextEngine * resource={}) |
| Constructs the underlying resource.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
| Resource (const Resource &other)=delete |
|
| Resource (Resource &&other)=delete |
|
Resource & | operator= (const Resource &other)=delete |
|
Resource & | operator= (Resource &&other)=delete |
|
constexpr | operator bool () const |
| True if contains a valid resource.
|
|
constexpr bool | operator== (const Resource &other) const=default |
| Comparison.
|
|
constexpr bool | operator== (std::nullopt_t) const |
| Comparison.
|
|
constexpr bool | operator== (std::nullptr_t) const |
| Comparison.
|
|
constexpr TTF_TextEngine * | get () const |
| Return contained resource;.
|
|
constexpr TTF_TextEngine * | release (TTF_TextEngine * newResource={}) |
| Return contained resource and empties or replace value.
|
|
constexpr const TTF_TextEngine * | operator-> () const |
| Access to fields.
|
|
constexpr TTF_TextEngine * | operator-> () |
| Access to fields.
|
|
This is a public interface that can be used by applications and libraries to perform customize rendering with text objects. See <SDL3_ttf/SDL_textengine.h> for details.
There are three text engines provided with the library:
- Since
- This struct is available since SDL_ttf 3.0.0.
- Category:
- Resource
- See also
- TextEngine
-
TextEngineRef