Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
4806:007567dbb8c1 | 4807:c9eb95f29770 |
---|---|
81 /** \brief An enum denoting the specific type of contents present in an SDL_WindowShapeParams union. */ | 81 /** \brief An enum denoting the specific type of contents present in an SDL_WindowShapeParams union. */ |
82 typedef enum { | 82 typedef enum { |
83 /** \brief The default mode, a binarized alpha cutoff of 1. */ | 83 /** \brief The default mode, a binarized alpha cutoff of 1. */ |
84 ShapeModeDefault, | 84 ShapeModeDefault, |
85 /** \brief A binarized alpha cutoff with a given integer value. */ | 85 /** \brief A binarized alpha cutoff with a given integer value. */ |
86 ShapeModeBinarizeAlpha | 86 ShapeModeBinarizeAlpha, |
87 /** \brief A binarized alpha cutoff with a given integer value, but with the opposite comparison. */ | |
88 ShapeModeReverseBinarizeAlpha, | |
89 /** \brief A color key is applied. */ | |
90 ShapeModeColorKey | |
87 } WindowShapeMode; | 91 } WindowShapeMode; |
88 /** \brief A union containing parameters for shaped windows. */ | 92 /** \brief A union containing parameters for shaped windows. */ |
89 typedef union { | 93 typedef union { |
90 /** \brief a cutoff alpha value for binarization of the window shape's alpha channel. */ | 94 /** \brief a cutoff alpha value for binarization of the window shape's alpha channel. */ |
91 Uint8 binarizationCutoff; | 95 Uint8 binarizationCutoff; |
96 SDL_Color colorKey; | |
92 } SDL_WindowShapeParams; | 97 } SDL_WindowShapeParams; |
93 | 98 |
94 /** \brief A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents. */ | 99 /** \brief A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents. */ |
95 typedef struct SDL_WindowShapeMode { | 100 typedef struct SDL_WindowShapeMode { |
96 /** \brief The mode of these window-shape parameters. */ | 101 /** \brief The mode of these window-shape parameters. */ |