diff 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
line wrap: on
line diff
--- a/include/SDL_video.h	Sun Jun 11 07:30:16 2006 +0000
+++ b/include/SDL_video.h	Mon Jun 12 09:10:06 2006 +0000
@@ -201,11 +201,11 @@
  */
 typedef enum
 {
-    SDL_TextureBlendMode_None,  /**< No blending */
-    SDL_TextureBlendMode_Mask,  /**< dst = A ? src : dst (alpha is mask) */
-    SDL_TextureBlendMode_Blend, /**< dst = (src * A) + (dst * (1-A)) */
-    SDL_TextureBlendMode_Add,   /**< dst = (src * A) + dst */
-    SDL_TextureBlendMode_Mod,   /**< dst = src * dst */
+    SDL_TextureBlendMode_None = 0x00000000,     /**< No blending */
+    SDL_TextureBlendMode_Mask = 0x00000001,     /**< dst = A ? src : dst (alpha is mask) */
+    SDL_TextureBlendMode_Blend = 0x00000002,    /**< dst = (src * A) + (dst * (1-A)) */
+    SDL_TextureBlendMode_Add = 0x00000004,      /**< dst = (src * A) + dst */
+    SDL_TextureBlendMode_Mod = 0x00000008,      /**< dst = src * dst */
 } SDL_TextureBlendMode;
 
 /**
@@ -215,10 +215,10 @@
  */
 typedef enum
 {
-    SDL_TextureScaleMode_None,  /**< No scaling, rectangles must match dimensions */
-    SDL_TextureScaleMode_Fast,  /**< Point sampling or equivalent algorithm */
-    SDL_TextureScaleMode_Slow,  /**< Linear filtering or equivalent algorithm */
-    SDL_TextureScaleMode_Best,  /**< Bicubic filtering or equivalent algorithm */
+    SDL_TextureScaleMode_None = 0x00000000,     /**< No scaling, rectangles must match dimensions */
+    SDL_TextureScaleMode_Fast = 0x00000001,     /**< Point sampling or equivalent algorithm */
+    SDL_TextureScaleMode_Slow = 0x00000002,     /**< Linear filtering or equivalent algorithm */
+    SDL_TextureScaleMode_Best = 0x00000004,     /**< Bicubic filtering or equivalent algorithm */
 } SDL_TextureScaleMode;
 
 /**