SDL_Texture(3type)

SDL_Texture3type

An efficient driver-specific representation of pixel data

Usage

#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 */ };

Header file

Defined in SDL3/SDL_render.h

Availability

This struct is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.