comparison src/video/SDL_shape_internals.h @ 4839:05d172e92b52

Merging branches. Will begin correcting mistakes introduced by merging.
author Eli Gottlieb <eligottlieb@gmail.com>
date Mon, 09 Aug 2010 15:41:33 -0400
parents 2e446923c9fb
children 14870d46ee2d
comparison
equal deleted inserted replaced
4838:1f9915666afd 4839:05d172e92b52
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);
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* */