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

# SDL\_GetNumRenderDrivers(3)

Get the number of 2D rendering drivers available for the current display.

## NAME

SDL\_GetNumRenderDrivers - Get the number of 2D rendering drivers available for the current display.

## HEADER FILE

Defined in SDL3/SDL\_render.h

## SYNOPSIS

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

**int SDL\_GetNumRenderDrivers(void);**

## DESCRIPTION

A render driver is a set of code that handles rendering and texture management on a particular display. Normally there is only one, but some drivers may have several available with different capabilities.

There may be none if SDL was compiled without render support.

## RETURN VALUE

Returns the number of built in render drivers.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateRenderer**(3)](/SDL_CreateRenderer/3.md), **•**(3), [**SDL\_GetRenderDriver**(3)](/SDL_GetRenderDriver/3.md)
