comparison include/SDL_video.h @ 5145:c8e049de174c

Making the API simpler, the renderer present semantics are always having a backbuffer and then discarding it. This is best for hardware accelerated rendering.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 12:19:46 -0800
parents 31e7f523ab3d
children b52793134276
comparison
equal deleted inserted replaced
5144:31e7f523ab3d 5145:c8e049de174c
149 /** 149 /**
150 * \brief Flags used when creating a rendering context 150 * \brief Flags used when creating a rendering context
151 */ 151 */
152 typedef enum 152 typedef enum
153 { 153 {
154 SDL_RENDERER_SINGLEBUFFER = 0x00000001, /**< Render directly to the
155 window, if possible */
156
157 SDL_RENDERER_PRESENTCOPY = 0x00000002, /**< Present uses a copy from
158 back buffer to the front
159 buffer */
160
161 SDL_RENDERER_PRESENTFLIP2 = 0x00000004, /**< Present uses a flip,
162 swapping back buffer and
163 front buffer */
164
165 SDL_RENDERER_PRESENTFLIP3 = 0x00000008, /**< Present uses a flip,
166 rotating between two back
167 buffers and a front buffer
168 */
169
170 SDL_RENDERER_PRESENTDISCARD = 0x00000010, /**< Present leaves the contents
171 of the backbuffer undefined
172 */
173
174 SDL_RENDERER_PRESENTVSYNC = 0x00000020, /**< Present is synchronized 154 SDL_RENDERER_PRESENTVSYNC = 0x00000020, /**< Present is synchronized
175 with the refresh rate */ 155 with the refresh rate */
176 156
177 SDL_RENDERER_ACCELERATED = 0x00000040 /**< The renderer uses hardware 157 SDL_RENDERER_ACCELERATED = 0x00000040 /**< The renderer uses hardware
178 acceleration */ 158 acceleration */
179 159 } SDL_RendererFlags;
180 } SDL_RendererFlags;
181 160
182 /** 161 /**
183 * \brief Information on the capabilities of a render driver or context. 162 * \brief Information on the capabilities of a render driver or context.
184 */ 163 */
185 typedef struct SDL_RendererInfo 164 typedef struct SDL_RendererInfo