RENDER_DRIVER


Description:

[ CCode ( cname = "SDL_HINT_RENDER_DRIVER" ) ]
public const string RENDER_DRIVER

A variable specifying which render driver to use.

If the application doesn't pick a specific renderer to use, this variable specifies the name of the preferred renderer. If the preferred renderer can't be initialized, the normal default renderer is used.

This variable is case insensitive and can be set to the following values:

  • "direct3d"
  • "opengl"
  • "opengles2"
  • "opengles"
  • "software"

The default varies by platform, but it's the first one in the list that is available on the current platform.


Namespace: SDL.Hint
Package: sdl2