Module: SDL2::Renderer::Flags

Defined in:
ext/sdl2_ext/video.c,
ext/sdl2_ext/video.c

Overview

The OR’d bits of the constants of this module represents the state of renderers.

You can use this flag when you create a new renderer. No flags(==0) gives priority to available ACCELERATED renderers.

Constant Summary collapse

SOFTWARE =

the renderer is a software fallback

UINT2NUM(SDL_RENDERER_SOFTWARE)
ACCELERATED =

the renderer uses hardware acceleration

UINT2NUM(SDL_RENDERER_ACCELERATED)
PRESENTVSYNC =

present is synchronized with the refresh rate

UINT2NUM(SDL_RENDERER_PRESENTVSYNC)
TARGETTEXTURE =

the renderer supports rendering to texture

UINT2NUM(SDL_RENDERER_TARGETTEXTURE)