---
name: "TTF_DestroyGPUTextEngine"
section: "3"
platform: "linux"
package: "libsdl3-ttf-doc"
version: "3.2.2+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/TTF_DestroyGPUTextEngine"
---

# TTF\_DestroyGPUTextEngine(3)

Destroy a text engine created for drawing text with the SDL GPU API.

## NAME

TTF\_DestroyGPUTextEngine - Destroy a text engine created for drawing text with the SDL GPU API.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

```
#include "SDL3_ttf/SDL_ttf.h"
```

**void TTF\_DestroyGPUTextEngine(TTF\_TextEngine \*engine);**

## DESCRIPTION

All text created by this engine should be destroyed before calling this function.

## FUNCTION PARAMETERS

- *engine*

  a  **TTF\_TextEngine**\
    object created with  **TTF\_CreateGPUTextEngine** ().

## THREAD SAFETY

This function should be called on the thread that created the engine.

## AVAILABILITY

This function is available since SDL\_ttf 3.0.0.

## SEE ALSO

**•**(3), [**TTF\_CreateGPUTextEngine**(3)](/TTF_CreateGPUTextEngine/3.md)
