|
void | SetGPUWinding (GPUTextEngineWinding winding) |
| Sets the winding order of the vertices returned by TextRef.GetGPUDrawData for a particular GPU text engine.
|
|
GPUTextEngineWinding | GetGPUWinding () const |
| Get the winding order of the vertices returned by TextRef.GetGPUDrawData for a particular GPU text engine.
|
|
constexpr | Resource (T resource={}) |
| Constructs from the underlying resource.
|
|
constexpr | Resource (const ResourceHandle< Resource< T > > auto &resource) |
| Constructs from pointer like.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (TTF_TextEngine * resource={}) |
| Constructs from the underlying resource.
|
|
constexpr | Resource (const ResourceHandle< Resource< TTF_TextEngine * > > auto &resource) |
| Constructs from pointer like.
|
|
constexpr | Resource (std::nullptr_t) |
| Equivalent to default ctor.
|
|
constexpr | Resource (std::nullopt_t) |
| Equivalent to default ctor.
|
|
constexpr | operator bool () const |
| True if contains a valid resource.
|
|
constexpr | operator value_type () const |
| Converts back to underlying type.
|
|
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 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:
- Drawing to an SDL_Surface, created with CreateSurfaceTextEngine()
- Drawing with an SDL 2D renderer, created with CreateRendererTextEngine()
- Drawing with the SDL GPU API, created with CreateGPUTextEngine()
- Since
- This struct is available since SDL_ttf 3.0.0.
- Category:
- Resource
- See also
- TextEngine