Mercurial > sdl-ios-xcode
annotate src/video/x11/SDL_x11shape.h @ 5148:2f44e6969a59
Split the rendering API out into a separate header file.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 01 Feb 2011 15:02:21 -0800 |
parents | 329708ffe2a7 |
children |
rev | line source |
---|---|
4783 | 1 /* |
2 SDL - Simple DirectMedia Layer | |
3 Copyright (C) 2010 Eli Gottlieb | |
4 | |
5 This library is free software; you can redistribute it and/or | |
6 modify it under the terms of the GNU Lesser General Public | |
7 License as published by the Free Software Foundation; either | |
8 version 2.1 of the License, or (at your option) any later version. | |
9 | |
10 This library is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 Lesser General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU Lesser General Public | |
16 License along with this library; if not, write to the Free Software | |
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | |
19 Eli Gottlieb | |
20 eligottlieb@gmail.com | |
21 */ | |
22 #include "SDL_config.h" | |
23 | |
24 #ifndef _SDL_x11shape_h | |
25 #define _SDL_x11shape_h | |
26 | |
27 #include "SDL_video.h" | |
28 #include "SDL_shape.h" | |
29 #include "../SDL_sysvideo.h" | |
30 | |
31 typedef struct { | |
32 void* bitmap; | |
33 Uint32 bitmapsize; | |
34 } SDL_ShapeData; | |
35 | |
4809
329708ffe2a7
Rejiggering the way shaped windows are created as preparation for OS X implementation. Fixed overdrive bug in test program that appears to have been introduced by someone other than myself.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4783
diff
changeset
|
36 extern SDL_Window* X11_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags); |
4783 | 37 extern SDL_WindowShaper* X11_CreateShaper(SDL_Window* window); |
38 extern int X11_ResizeWindowShape(SDL_Window* window); | |
39 extern int X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode); | |
40 | |
41 #endif /* _SDL_x11shape_h */ |