src/video/SDL_shape_internals.h
changeset 4817 c68e7490e4cf
parent 4814 4f7133445367
child 4830 3dfe779900f5
equal deleted inserted replaced
4816:eb433f0d2ac5 4817:c68e7490e4cf
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    18 
    19     Eli Gottlieb
    19     Eli Gottlieb
    20     eligottlieb@gmail.com
    20     eligottlieb@gmail.com
    21 */
    21 */
       
    22 #include "SDL_config.h"
    22 
    23 
    23 #ifndef _SDL_shape_internals_h
    24 #ifndef _SDL_shape_internals_h
    24 #define _SDL_shape_internals_h
    25 #define _SDL_shape_internals_h
    25 
    26 
    26 #include "SDL_rect.h"
    27 #include "SDL_rect.h"
    49 typedef struct {
    50 typedef struct {
    50 	SDL_ShapeKind kind;
    51 	SDL_ShapeKind kind;
    51 	SDL_ShapeUnion data;
    52 	SDL_ShapeUnion data;
    52 } SDL_ShapeTree;
    53 } SDL_ShapeTree;
    53 
    54 
    54 extern void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitmap,Uint8 ppb,Uint8 value);
    55 extern void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitmap,Uint8 ppb);
    55 extern SDL_ShapeTree* SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape,SDL_bool invert);
    56 extern SDL_ShapeTree* SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape,SDL_bool invert);
    56 extern void SDL_TraverseShapeTree(SDL_ShapeTree *tree,void(*function)(SDL_ShapeTree*,void*),void* closure);
    57 extern void SDL_TraverseShapeTree(SDL_ShapeTree *tree,void(*function)(SDL_ShapeTree*,void*),void* closure);
    57 extern void SDL_FreeShapeTree(SDL_ShapeTree** shapeTree);
    58 extern void SDL_FreeShapeTree(SDL_ShapeTree** shapeTree);
    58 
    59 
    59 /* Ends C function definitions when using C++ */
    60 /* Ends C function definitions when using C++ */