src/video/SDL_shape_internals.h
changeset 4830 3dfe779900f5
parent 4817 c68e7490e4cf
child 4837 2e446923c9fb
equal deleted inserted replaced
4829:7160e833c4ac 4830:3dfe779900f5
    49 
    49 
    50 typedef struct {
    50 typedef struct {
    51 	SDL_ShapeKind kind;
    51 	SDL_ShapeKind kind;
    52 	SDL_ShapeUnion data;
    52 	SDL_ShapeUnion data;
    53 } SDL_ShapeTree;
    53 } SDL_ShapeTree;
       
    54 	
       
    55 typedef void(*SDL_TraversalFunction)(SDL_ShapeTree*,void*);
    54 
    56 
    55 extern void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitmap,Uint8 ppb);
    57 extern void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitmap,Uint8 ppb);
    56 extern SDL_ShapeTree* SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape,SDL_bool invert);
    58 extern SDL_ShapeTree* SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape,SDL_bool invert);
    57 extern void SDL_TraverseShapeTree(SDL_ShapeTree *tree,void(*function)(SDL_ShapeTree*,void*),void* closure);
    59 extern void SDL_TraverseShapeTree(SDL_ShapeTree *tree,SDL_TraversalFunction function,void* closure);
    58 extern void SDL_FreeShapeTree(SDL_ShapeTree** shapeTree);
    60 extern void SDL_FreeShapeTree(SDL_ShapeTree** shapeTree);
    59 
    61 
    60 /* Ends C function definitions when using C++ */
    62 /* Ends C function definitions when using C++ */
    61 #ifdef __cplusplus
    63 #ifdef __cplusplus
    62 /* *INDENT-OFF* */
    64 /* *INDENT-OFF* */