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