Mercurial > sdl-ios-xcode
annotate src/video/SDL_rect_c.h @ 1735:8dd28c4ef746 SDL-1.3
SDL_Rect now uses int for position and size.
Added a few more rectangle functions.
Added a dirty rectangle list implementation.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Jul 2006 07:34:50 +0000 |
parents | |
children | 12ea0fdc0df2 |
rev | line source |
---|---|
1735
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
1 /* |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
2 SDL - Simple DirectMedia Layer |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
3 Copyright (C) 1997-2006 Sam Lantinga |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
4 |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
5 This library is free software; you can redistribute it and/or |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
6 modify it under the terms of the GNU Lesser General Public |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
7 License as published by the Free Software Foundation; either |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
8 version 2.1 of the License, or (at your option) any later version. |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
9 |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
10 This library is distributed in the hope that it will be useful, |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
13 Lesser General Public License for more details. |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
14 |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
15 You should have received a copy of the GNU Lesser General Public |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
16 License along with this library; if not, write to the Free Software |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
18 |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
19 Sam Lantinga |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
20 slouken@libsdl.org |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
21 */ |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
22 #include "SDL_config.h" |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
23 |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
24 typedef struct SDL_DirtyRect |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
25 { |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
26 SDL_Rect rect; |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
27 struct SDL_DirtyRect *next; |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
28 } SDL_DirtyRect; |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
29 |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
30 typedef struct SDL_DirtyRectList |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
31 { |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
32 int count; |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
33 SDL_DirtyRect *list; |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
34 SDL_DirtyRect *free; |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
35 } SDL_DirtyRectList; |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
36 |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
37 extern void SDL_AddDirtyRect(SDL_DirtyRectList * list, const SDL_Rect * rect); |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
38 extern void SDL_ClearDirtyRects(SDL_DirtyRectList * list); |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
39 extern void SDL_FreeDirtyRects(SDL_DirtyRectList * list); |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
40 |
8dd28c4ef746
SDL_Rect now uses int for position and size.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
41 /* vi: set ts=4 sw=4 expandtab: */ |