include/SDL_hints.h
changeset 5233 ce4f91138031
parent 5200 01bced9a4cc1
child 5262 b530ef003506
     1.1 --- a/include/SDL_hints.h	Tue Feb 08 22:11:16 2011 -0800
     1.2 +++ b/include/SDL_hints.h	Tue Feb 08 22:40:19 2011 -0800
     1.3 @@ -77,12 +77,27 @@
     1.4   *  This variable is case insensitive and can be set to the following values:
     1.5   *    "direct3d"
     1.6   *    "opengl"
     1.7 + *    "opengles2"
     1.8   *    "opengles"
     1.9   *    "software"
    1.10 + *
    1.11 + *  The default varies by platform, but it's the first one in the list that
    1.12 + *  is available on the current platform.
    1.13   */
    1.14  #define SDL_HINT_RENDER_DRIVER              "SDL_RENDER_DRIVER"
    1.15  
    1.16  /**
    1.17 + *  \brief  A variable controlling whether the OpenGL render driver uses shaders if they are available.
    1.18 + *
    1.19 + *  This variable can be set to the following values:
    1.20 + *    "0"       - Disable shaders
    1.21 + *    "1"       - Enable shaders
    1.22 + *
    1.23 + *  By default shaders are used if OpenGL supports them.
    1.24 + */
    1.25 +#define SDL_HINT_RENDER_OPENGL_SHADERS      "SDL_RENDER_OPENGL_SHADERS"
    1.26 +
    1.27 +/**
    1.28   *  \brief  A variable controlling whether updates to the SDL 1.2 screen surface should be synchronized with the vertical refresh, to avoid tearing.
    1.29   *
    1.30   *  This variable can be set to the following values: