include/SDL_hints.h
changeset 5192 ef5a61ea3202
parent 5190 82a48f4d65f6
child 5200 01bced9a4cc1
     1.1 --- a/include/SDL_hints.h	Sat Feb 05 10:11:27 2011 -0800
     1.2 +++ b/include/SDL_hints.h	Sat Feb 05 10:35:36 2011 -0800
     1.3 @@ -67,6 +67,32 @@
     1.4   */
     1.5  #define SDL_HINT_FRAMEBUFFER_ACCELERATION   "SDL_FRAMEBUFFER_ACCELERATION"
     1.6  
     1.7 +/**
     1.8 + *  \brief  A variable specifying which render driver to use.
     1.9 + *
    1.10 + *  If the application doesn't pick a specific renderer to use, this variable
    1.11 + *  specifies the name of the preferred renderer.  If the preferred renderer
    1.12 + *  can't be initialized, the normal default renderer is used.
    1.13 + *
    1.14 + *  This variable is case insensitive and can be set to the following values:
    1.15 + *    "direct3d"
    1.16 + *    "opengl"
    1.17 + *    "opengles"
    1.18 + *    "software"
    1.19 + */
    1.20 +#define SDL_HINT_RENDER_DRIVER              "SDL_RENDER_DRIVER"
    1.21 +
    1.22 +/**
    1.23 + *  \brief  A variable controlling whether updates to the SDL 1.2 screen surface should be synchronized with the vertical refresh, to avoid tearing.
    1.24 + *
    1.25 + *  This variable can be set to the following values:
    1.26 + *    "0"       - Disable vsync
    1.27 + *    "1"       - Enable vsync
    1.28 + *
    1.29 + *  By default SDL does not sync screen surface updates with vertical refresh.
    1.30 + */
    1.31 +#define SDL_HINT_RENDER_VSYNC               "SDL_RENDER_VSYNC"
    1.32 +
    1.33  
    1.34  /**
    1.35   *  \brief  An enumeration of hint priorities