(This is the legacy documentation for stable SDL2, the current stable version; SDL3 is the current development version.)

SDL_RendererFlags

Flags used when creating a rendering context

Header File

Defined in SDL_render.h

Syntax

typedef enum SDL_RendererFlags
{
    SDL_RENDERER_SOFTWARE = 0x00000001,         /**< The renderer is a software fallback */
    SDL_RENDERER_ACCELERATED = 0x00000002,      /**< The renderer uses hardware
                                                     acceleration */
    SDL_RENDERER_PRESENTVSYNC = 0x00000004,     /**< Present is synchronized
                                                     with the refresh rate */
    SDL_RENDERER_TARGETTEXTURE = 0x00000008     /**< The renderer supports
                                                     rendering to texture */
} SDL_RendererFlags;

CategoryAPI, CategoryAPIEnum, CategoryRender