comparison include/SDL_video.h @ 1676:e136f3ffdc1b SDL-1.3

Adding software renderer implementation
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jun 2006 09:10:06 +0000
parents d33dcfc3fde7
children 90bf530ced8e
comparison
equal deleted inserted replaced
1675:d33dcfc3fde7 1676:e136f3ffdc1b
199 * 199 *
200 * \brief The blend mode used in SDL_RenderCopy() 200 * \brief The blend mode used in SDL_RenderCopy()
201 */ 201 */
202 typedef enum 202 typedef enum
203 { 203 {
204 SDL_TextureBlendMode_None, /**< No blending */ 204 SDL_TextureBlendMode_None = 0x00000000, /**< No blending */
205 SDL_TextureBlendMode_Mask, /**< dst = A ? src : dst (alpha is mask) */ 205 SDL_TextureBlendMode_Mask = 0x00000001, /**< dst = A ? src : dst (alpha is mask) */
206 SDL_TextureBlendMode_Blend, /**< dst = (src * A) + (dst * (1-A)) */ 206 SDL_TextureBlendMode_Blend = 0x00000002, /**< dst = (src * A) + (dst * (1-A)) */
207 SDL_TextureBlendMode_Add, /**< dst = (src * A) + dst */ 207 SDL_TextureBlendMode_Add = 0x00000004, /**< dst = (src * A) + dst */
208 SDL_TextureBlendMode_Mod, /**< dst = src * dst */ 208 SDL_TextureBlendMode_Mod = 0x00000008, /**< dst = src * dst */
209 } SDL_TextureBlendMode; 209 } SDL_TextureBlendMode;
210 210
211 /** 211 /**
212 * \enum SDL_TextureScaleMode 212 * \enum SDL_TextureScaleMode
213 * 213 *
214 * \brief The scale mode used in SDL_RenderCopy() 214 * \brief The scale mode used in SDL_RenderCopy()
215 */ 215 */
216 typedef enum 216 typedef enum
217 { 217 {
218 SDL_TextureScaleMode_None, /**< No scaling, rectangles must match dimensions */ 218 SDL_TextureScaleMode_None = 0x00000000, /**< No scaling, rectangles must match dimensions */
219 SDL_TextureScaleMode_Fast, /**< Point sampling or equivalent algorithm */ 219 SDL_TextureScaleMode_Fast = 0x00000001, /**< Point sampling or equivalent algorithm */
220 SDL_TextureScaleMode_Slow, /**< Linear filtering or equivalent algorithm */ 220 SDL_TextureScaleMode_Slow = 0x00000002, /**< Linear filtering or equivalent algorithm */
221 SDL_TextureScaleMode_Best, /**< Bicubic filtering or equivalent algorithm */ 221 SDL_TextureScaleMode_Best = 0x00000004, /**< Bicubic filtering or equivalent algorithm */
222 } SDL_TextureScaleMode; 222 } SDL_TextureScaleMode;
223 223
224 /** 224 /**
225 * \typedef SDL_TextureID 225 * \typedef SDL_TextureID
226 * 226 *