ttfCreateGpuTextEngine function
Create a text engine for drawing text with the SDL GPU API.
\param device the SDL_GPUDevice to use for creating textures and drawing text. \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_DestroyGPUTextEngine
extern SDL_DECLSPEC TTF_TextEngine * SDLCALL TTF_CreateGPUTextEngine(SDL_GPUDevice *device)
Implementation
Pointer<TtfTextEngine> ttfCreateGpuTextEngine(Pointer<SdlGpuDevice> device) {
final ttfCreateGpuTextEngineLookupFunction = libSdl3Ttf.lookupFunction<
Pointer<TtfTextEngine> Function(Pointer<SdlGpuDevice> device),
Pointer<TtfTextEngine> Function(
Pointer<SdlGpuDevice> device)>('TTF_CreateGPUTextEngine');
return ttfCreateGpuTextEngineLookupFunction(device);
}