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

# SDL\_Texture(3type)

An efficient driver-specific representation of pixel data

## NAME

SDL\_Texture - An efficient driver-specific representation of pixel data

## HEADER FILE

Defined in SDL3/SDL\_render.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**struct SDL\_Texture** **{**     **SDL\_PixelFormat format;     /\*\*\< The format of the texture, read-only \*/**     **int w;                      /\*\*\< The width of the texture, read-only. \*/**     **int h;                      /\*\*\< The height of the texture, read-only. \*/**     **int refcount;               /\*\*\< Application reference count, used when freeing texture \*/** **};**

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateTexture**(3)](/SDL_CreateTexture/3.md), **•**(3), [**SDL\_CreateTextureFromSurface**(3)](/SDL_CreateTextureFromSurface/3.md), **•**(3), [**SDL\_CreateTextureWithProperties**(3)](/SDL_CreateTextureWithProperties/3.md), **•**(3), [**SDL\_DestroyTexture**(3)](/SDL_DestroyTexture/3.md)
