SDL3pp
A slim C++ wrapper for SDL3
|
Handle to a non owned textEngine. More...
Public Member Functions | |
constexpr | TextEngineRef (const TextEngineRef &other) |
Copy constructor. | |
constexpr | TextEngineRef (TextEngineRef &&other) |
Move constructor. | |
constexpr | ~TextEngineRef ()=default |
Default constructor. | |
TextEngineRef & | operator= (TextEngineRef other) |
Assignment operator. | |
void | reset (TTF_TextEngine *newResource={}) |
frees up TextEngineBase. | |
constexpr | TextEngineBase (TTF_TextEngine *engine, void(*destroy)(TTF_TextEngine *engine)) |
Create from engine and custom destroyer. | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
void(* | m_destroy )(TTF_TextEngine *engine) = nullptr |
Custom destroyer. | |