include/SDL_shape.h
changeset 4807 c9eb95f29770
parent 4801 506a9165491b
child 4846 4f1573996a65
     1.1 --- a/include/SDL_shape.h	Tue Jul 20 12:42:43 2010 -0400
     1.2 +++ b/include/SDL_shape.h	Thu Jul 22 23:11:01 2010 -0400
     1.3 @@ -83,12 +83,17 @@
     1.4  	/** \brief The default mode, a binarized alpha cutoff of 1. */
     1.5  	ShapeModeDefault,
     1.6  	/** \brief A binarized alpha cutoff with a given integer value. */
     1.7 -	ShapeModeBinarizeAlpha
     1.8 +	ShapeModeBinarizeAlpha,
     1.9 +	/** \brief A binarized alpha cutoff with a given integer value, but with the opposite comparison. */
    1.10 +	ShapeModeReverseBinarizeAlpha,
    1.11 +	/** \brief A color key is applied. */
    1.12 +	ShapeModeColorKey
    1.13  } WindowShapeMode;
    1.14  /** \brief A union containing parameters for shaped windows. */
    1.15  typedef union {
    1.16  	/** \brief a cutoff alpha value for binarization of the window shape's alpha channel. */
    1.17  	Uint8 binarizationCutoff;
    1.18 +	SDL_Color colorKey;
    1.19  } SDL_WindowShapeParams;
    1.20  
    1.21  /** \brief A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents. */