diff include/SDL_shape.h @ 4807:c9eb95f29770

Added color-key mode and redid the code to work with it.
author Eli Gottlieb <eligottlieb@gmail.com>
date Thu, 22 Jul 2010 23:11:01 -0400
parents 506a9165491b
children 4f1573996a65
line wrap: on
line diff
--- a/include/SDL_shape.h	Tue Jul 20 12:42:43 2010 -0400
+++ b/include/SDL_shape.h	Thu Jul 22 23:11:01 2010 -0400
@@ -83,12 +83,17 @@
 	/** \brief The default mode, a binarized alpha cutoff of 1. */
 	ShapeModeDefault,
 	/** \brief A binarized alpha cutoff with a given integer value. */
-	ShapeModeBinarizeAlpha
+	ShapeModeBinarizeAlpha,
+	/** \brief A binarized alpha cutoff with a given integer value, but with the opposite comparison. */
+	ShapeModeReverseBinarizeAlpha,
+	/** \brief A color key is applied. */
+	ShapeModeColorKey
 } WindowShapeMode;
 /** \brief A union containing parameters for shaped windows. */
 typedef union {
 	/** \brief a cutoff alpha value for binarization of the window shape's alpha channel. */
 	Uint8 binarizationCutoff;
+	SDL_Color colorKey;
 } SDL_WindowShapeParams;
 
 /** \brief A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents. */