ttfCreateGpuTextEngineWithProperties function ttf
Create a text engine for drawing text with the SDL GPU API, with the specified properties.
These are the supported properties:
TTF_PROP_GPU_TEXT_ENGINE_DEVICE_POINTER
: the SDL_GPUDevice to use for creating textures and drawing text.TTF_PROP_GPU_TEXT_ENGINE_ATLAS_TEXTURE_SIZE_NUMBER
: the size of the texture atlas
\param props the properties to use. \returns a TTF_TextEngine object or NULL on failure; call SDL_GetError() for more information.
\threadsafety This function should be called on the thread that created the device.
\since This function is available since SDL_ttf 3.0.0.
\sa TTF_CreateGPUTextEngine \sa TTF_DestroyGPUTextEngine \sa TTF_GetGPUTextDrawData
extern SDL_DECLSPEC TTF_TextEngine * SDLCALL TTF_CreateGPUTextEngineWithProperties(SDL_PropertiesID props)
Implementation
Pointer<TtfTextEngine> ttfCreateGpuTextEngineWithProperties(int props) {
final ttfCreateGpuTextEngineWithPropertiesLookupFunction = _libTtf
.lookupFunction<
Pointer<TtfTextEngine> Function(Uint32 props),
Pointer<TtfTextEngine> Function(int props)
>('TTF_CreateGPUTextEngineWithProperties');
return ttfCreateGpuTextEngineWithPropertiesLookupFunction(props);
}