logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

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.

Name

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

Return Value

       Returns the number of built in render drivers.

See Also

SDL_CreateRenderer(3), SDL_GetRenderDriver(3)

Simple Directmedia Layer                           SDL 3.2.20                         SDL_GetNumRenderDrivers(3)

Synopsis

#include<SDL3/SDL_render.h>intSDL_GetNumRenderDrivers(void);

Thread Safety

       It is safe to call this function from any thread.

See Also