Mercurial > sdl-ios-xcode
comparison include/SDL_hints.h @ 5195:ef5a61ea3202
Added the SDL_HINT_RENDER_DRIVER and SDL_HINT_RENDER_VSYNC hints.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 05 Feb 2011 10:35:36 -0800 |
parents | 82a48f4d65f6 |
children | 01bced9a4cc1 |
comparison
equal
deleted
inserted
replaced
5194:93052810ceb5 | 5195:ef5a61ea3202 |
---|---|
65 * By default SDL tries to make a best guess for each platform whether | 65 * By default SDL tries to make a best guess for each platform whether |
66 * to use acceleration or not. | 66 * to use acceleration or not. |
67 */ | 67 */ |
68 #define SDL_HINT_FRAMEBUFFER_ACCELERATION "SDL_FRAMEBUFFER_ACCELERATION" | 68 #define SDL_HINT_FRAMEBUFFER_ACCELERATION "SDL_FRAMEBUFFER_ACCELERATION" |
69 | 69 |
70 /** | |
71 * \brief A variable specifying which render driver to use. | |
72 * | |
73 * If the application doesn't pick a specific renderer to use, this variable | |
74 * specifies the name of the preferred renderer. If the preferred renderer | |
75 * can't be initialized, the normal default renderer is used. | |
76 * | |
77 * This variable is case insensitive and can be set to the following values: | |
78 * "direct3d" | |
79 * "opengl" | |
80 * "opengles" | |
81 * "software" | |
82 */ | |
83 #define SDL_HINT_RENDER_DRIVER "SDL_RENDER_DRIVER" | |
84 | |
85 /** | |
86 * \brief A variable controlling whether updates to the SDL 1.2 screen surface should be synchronized with the vertical refresh, to avoid tearing. | |
87 * | |
88 * This variable can be set to the following values: | |
89 * "0" - Disable vsync | |
90 * "1" - Enable vsync | |
91 * | |
92 * By default SDL does not sync screen surface updates with vertical refresh. | |
93 */ | |
94 #define SDL_HINT_RENDER_VSYNC "SDL_RENDER_VSYNC" | |
95 | |
70 | 96 |
71 /** | 97 /** |
72 * \brief An enumeration of hint priorities | 98 * \brief An enumeration of hint priorities |
73 */ | 99 */ |
74 typedef enum | 100 typedef enum |