comparison include/SDL_video.h @ 1897:c2a27da60b18

Solved the performance problems by introducing the concept of a single-buffered display, which is a fast path used for the whole-surface SDL 1.2 API. Solved the flicker problems by implementing a backbuffer in the GDI renderer. Unfortunately, now using the GDI renderer with a backbuffer and HBITMAPs is significantly slower than SDL's surface code. *sigh*
author Sam Lantinga <slouken@libsdl.org>
date Wed, 12 Jul 2006 06:39:26 +0000
parents c121d94672cb
children 06c27a737b7a
comparison
equal deleted inserted replaced
1896:4a74fa359e7e 1897:c2a27da60b18
168 * 168 *
169 * \brief Flags used when initializing a render manager. 169 * \brief Flags used when initializing a render manager.
170 */ 170 */
171 typedef enum 171 typedef enum
172 { 172 {
173 SDL_Renderer_PresentDiscard = 0x00000001, /**< Present leaves the contents of the backbuffer undefined */ 173 SDL_Renderer_SingleBuffer = 0x00000001, /**< Render directly to the window, if possible */
174 SDL_Renderer_PresentCopy = 0x00000002, /**< Present uses a copy from back buffer to the front buffer */ 174 SDL_Renderer_PresentCopy = 0x00000002, /**< Present uses a copy from back buffer to the front buffer */
175 SDL_Renderer_PresentFlip2 = 0x00000004, /**< Present uses a flip, swapping back buffer and front buffer */ 175 SDL_Renderer_PresentFlip2 = 0x00000004, /**< Present uses a flip, swapping back buffer and front buffer */
176 SDL_Renderer_PresentFlip3 = 0x00000008, /**< Present uses a flip, rotating between two back buffers and a front buffer */ 176 SDL_Renderer_PresentFlip3 = 0x00000008, /**< Present uses a flip, rotating between two back buffers and a front buffer */
177 SDL_Renderer_PresentVSync = 0x00000010, /**< Present is synchronized with the refresh rate */ 177 SDL_Renderer_PresentDiscard = 0x00000010, /**< Present leaves the contents of the backbuffer undefined */
178 SDL_Renderer_RenderTarget = 0x00000020, /**< The renderer can create texture render targets */ 178 SDL_Renderer_PresentVSync = 0x00000020, /**< Present is synchronized with the refresh rate */
179 SDL_Renderer_Accelerated = 0x00000040, /**< The renderer uses hardware acceleration */ 179 SDL_Renderer_RenderTarget = 0x00000040, /**< The renderer can create texture render targets */
180 SDL_Renderer_ = 0x00000080, /**< The renderer uses hardware acceleration */ 180 SDL_Renderer_Accelerated = 0x00000080, /**< The renderer uses hardware acceleration */
181 SDL_Renderer_Minimal = 0x00000100, /**< The renderer only supports the read/write pixel and present functions */ 181 SDL_Renderer_Minimal = 0x00000100, /**< The renderer only supports the read/write pixel and present functions */
182 } SDL_RendererFlags; 182 } SDL_RendererFlags;
183 183
184 /** 184 /**
185 * \struct SDL_RendererInfo 185 * \struct SDL_RendererInfo