TSdlTtfGpuTextEngine
A text engine for drawing text with the SDL GPU API.
Definition
Unit: Neslib.Sdl3.Ttf
Inheritance
Inherits: TSdlTtfTextEngine
See Also
Properties
Name | Description |
---|---|
Winding | The winding order of the vertices returned by TSdlTtfText.GetGpuDrawData. |
Constructors
Name | Description |
---|---|
Create(TSdlProperties) | Create a text engine for drawing text with the SDL GPU API, with the specified properties. |
Create(TSdlGpuDevice) | Create a text engine for drawing text with the SDL GPU API. |
Methods
Name | Description |
---|---|
DestroyHandle |
Property Descriptions
Winding
The winding order of the vertices returned by TSdlTtfText.GetGpuDrawData.
property Winding: TSdlTtfGpuTextEngineWinding read GetWinding write SetWinding
Type: TSdlTtfGpuTextEngineWinding
Exceptions
ESdlError
: Raised on failure.
Remarks
This property should be used on the thread that created the engine.
Constructor Descriptions
Create
Create a text engine for drawing text with the SDL GPU API, with the specified properties.
These are the supported properties:
TSdlTtfProperty.GpuTextEngineDevice
: the TSdlGpuDevice to use for creating textures and drawing text.TSdlTtfProperty.GpuTextEngineAtlasTextureSize
: the size of the texture atlas
constructor Create(const AProps: TSdlProperties); overload
Parameters
AProps
: TSdlProperties
: The properties to use.
Exceptions
ESdlError
: Raised on failure.
Remarks
This constructor should be called on the thread that created the device.
Create
Create a text engine for drawing text with the SDL GPU API.
constructor Create(const ADevice: TSdlGpuDevice); overload
Parameters
ADevice
: TSdlGpuDevice
: The GPU device to use for creating textures and drawing text.
Exceptions
ESdlError
: Raised on failure.
Remarks
This constructor should be called on the thread that created the device.
Method Descriptions
DestroyHandle
procedure DestroyHandle; override