diff 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
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoashape.h	Mon Aug 02 23:58:22 2010 -0400
+++ b/src/video/cocoa/SDL_cocoashape.h	Tue Aug 03 00:47:33 2010 -0400
@@ -20,14 +20,26 @@
     eligottlieb@gmail.com
 */
 
+#include "SDL_config.h"
+
+#ifndef _SDL_cocoashape_h
+#define _SDL_cocoashape_h
+
+#include "SDL_stdinc.h"
+#include "SDL_video.h"
+#include "SDL_shape.h"
+#include "SDL_shape_internals.h"
+#include "../SDL_sysvideo.h"
+
 typedef struct {
 	NSGraphicsContext* context;
-	SDL_Bool saved;
+	SDL_bool saved;
 	
-	NSRect* rects;
-	Uint32 count;
+	SDL_ShapeTree* shape;
 } SDL_ShapeData;
 
 extern SDL_WindowShaper* Cocoa_CreateShaper(SDL_Window* window);
 extern int Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);
 extern int Cocoa_ResizeWindowShape(SDL_Window *window);
+
+#endif