Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoashape.h @ 4827:5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
author | egottlieb |
---|---|
date | Tue, 03 Aug 2010 00:47:33 -0400 |
parents | 760ab1b145b8 |
children | 8dabd625079f |
comparison
equal
deleted
inserted
replaced
4826:d532a5a114cd | 4827:5660aac926e9 |
---|---|
18 | 18 |
19 Eli Gottlieb | 19 Eli Gottlieb |
20 eligottlieb@gmail.com | 20 eligottlieb@gmail.com |
21 */ | 21 */ |
22 | 22 |
23 #include "SDL_config.h" | |
24 | |
25 #ifndef _SDL_cocoashape_h | |
26 #define _SDL_cocoashape_h | |
27 | |
28 #include "SDL_stdinc.h" | |
29 #include "SDL_video.h" | |
30 #include "SDL_shape.h" | |
31 #include "SDL_shape_internals.h" | |
32 #include "../SDL_sysvideo.h" | |
33 | |
23 typedef struct { | 34 typedef struct { |
24 NSGraphicsContext* context; | 35 NSGraphicsContext* context; |
25 SDL_Bool saved; | 36 SDL_bool saved; |
26 | 37 |
27 NSRect* rects; | 38 SDL_ShapeTree* shape; |
28 Uint32 count; | |
29 } SDL_ShapeData; | 39 } SDL_ShapeData; |
30 | 40 |
31 extern SDL_WindowShaper* Cocoa_CreateShaper(SDL_Window* window); | 41 extern SDL_WindowShaper* Cocoa_CreateShaper(SDL_Window* window); |
32 extern int Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode); | 42 extern int Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode); |
33 extern int Cocoa_ResizeWindowShape(SDL_Window *window); | 43 extern int Cocoa_ResizeWindowShape(SDL_Window *window); |
44 | |
45 #endif |