eligottlieb@4825
|
1 |
/*
|
eligottlieb@4825
|
2 |
SDL - Simple DirectMedia Layer
|
eligottlieb@4825
|
3 |
Copyright (C) 2010 Eli Gottlieb
|
eligottlieb@4825
|
4 |
|
eligottlieb@4825
|
5 |
This library is free software; you can redistribute it and/or
|
eligottlieb@4825
|
6 |
modify it under the terms of the GNU Lesser General Public
|
eligottlieb@4825
|
7 |
License as published by the Free Software Foundation; either
|
eligottlieb@4825
|
8 |
version 2.1 of the License, or (at your option) any later version.
|
eligottlieb@4825
|
9 |
|
eligottlieb@4825
|
10 |
This library is distributed in the hope that it will be useful,
|
eligottlieb@4825
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
eligottlieb@4825
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
eligottlieb@4825
|
13 |
Lesser General Public License for more details.
|
eligottlieb@4825
|
14 |
|
eligottlieb@4825
|
15 |
You should have received a copy of the GNU Lesser General Public
|
eligottlieb@4825
|
16 |
License along with this library; if not, write to the Free Software
|
eligottlieb@4825
|
17 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
eligottlieb@4825
|
18 |
|
eligottlieb@4825
|
19 |
Eli Gottlieb
|
eligottlieb@4825
|
20 |
eligottlieb@gmail.com
|
eligottlieb@4825
|
21 |
*/
|
eligottlieb@4825
|
22 |
|
egottlieb@4827
|
23 |
#include "SDL_config.h"
|
egottlieb@4827
|
24 |
|
egottlieb@4827
|
25 |
#ifndef _SDL_cocoashape_h
|
egottlieb@4827
|
26 |
#define _SDL_cocoashape_h
|
egottlieb@4827
|
27 |
|
egottlieb@4827
|
28 |
#include "SDL_stdinc.h"
|
egottlieb@4827
|
29 |
#include "SDL_video.h"
|
egottlieb@4827
|
30 |
#include "SDL_shape.h"
|
egottlieb@4827
|
31 |
#include "SDL_shape_internals.h"
|
egottlieb@4827
|
32 |
#include "../SDL_sysvideo.h"
|
egottlieb@4827
|
33 |
|
eligottlieb@4825
|
34 |
typedef struct {
|
eligottlieb@4825
|
35 |
NSGraphicsContext* context;
|
egottlieb@4827
|
36 |
SDL_bool saved;
|
eligottlieb@4825
|
37 |
|
egottlieb@4827
|
38 |
SDL_ShapeTree* shape;
|
eligottlieb@4825
|
39 |
} SDL_ShapeData;
|
eligottlieb@4825
|
40 |
|
eligottlieb@4825
|
41 |
extern SDL_WindowShaper* Cocoa_CreateShaper(SDL_Window* window);
|
eligottlieb@4825
|
42 |
extern int Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);
|
eligottlieb@4825
|
43 |
extern int Cocoa_ResizeWindowShape(SDL_Window *window);
|
egottlieb@4827
|
44 |
|
egottlieb@4827
|
45 |
#endif
|