Module: SDL2::Renderer::Flags

Defined in:
video.c,
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 =

Returns the renderer is a software fallback.

Returns:

  • (Integer)

    the renderer is a software fallback

UINT2NUM(SDL_RENDERER_SOFTWARE)
ACCELERATED =

Returns the renderer uses hardware acceleration.

Returns:

  • (Integer)

    the renderer uses hardware acceleration

UINT2NUM(SDL_RENDERER_ACCELERATED)
PRESENTVSYNC =

Returns present is synchronized with the refresh rate.

Returns:

  • (Integer)

    present is synchronized with the refresh rate

UINT2NUM(SDL_RENDERER_PRESENTVSYNC)
TARGETTEXTURE =

Returns the renderer supports rendering to texture.

Returns:

  • (Integer)

    the renderer supports rendering to texture

UINT2NUM(SDL_RENDERER_TARGETTEXTURE)