comparison include/SDL_hints.h @ 5238:ce4f91138031

Added a hint to control whether the OpenGL driver uses shaders.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 08 Feb 2011 22:40:19 -0800
parents 01bced9a4cc1
children b530ef003506
comparison
equal deleted inserted replaced
5237:74bc160186a8 5238:ce4f91138031
75 * can't be initialized, the normal default renderer is used. 75 * can't be initialized, the normal default renderer is used.
76 * 76 *
77 * This variable is case insensitive and can be set to the following values: 77 * This variable is case insensitive and can be set to the following values:
78 * "direct3d" 78 * "direct3d"
79 * "opengl" 79 * "opengl"
80 * "opengles2"
80 * "opengles" 81 * "opengles"
81 * "software" 82 * "software"
83 *
84 * The default varies by platform, but it's the first one in the list that
85 * is available on the current platform.
82 */ 86 */
83 #define SDL_HINT_RENDER_DRIVER "SDL_RENDER_DRIVER" 87 #define SDL_HINT_RENDER_DRIVER "SDL_RENDER_DRIVER"
88
89 /**
90 * \brief A variable controlling whether the OpenGL render driver uses shaders if they are available.
91 *
92 * This variable can be set to the following values:
93 * "0" - Disable shaders
94 * "1" - Enable shaders
95 *
96 * By default shaders are used if OpenGL supports them.
97 */
98 #define SDL_HINT_RENDER_OPENGL_SHADERS "SDL_RENDER_OPENGL_SHADERS"
84 99
85 /** 100 /**
86 * \brief A variable controlling whether updates to the SDL 1.2 screen surface should be synchronized with the vertical refresh, to avoid tearing. 101 * \brief A variable controlling whether updates to the SDL 1.2 screen surface should be synchronized with the vertical refresh, to avoid tearing.
87 * 102 *
88 * This variable can be set to the following values: 103 * This variable can be set to the following values: