src/video/SDL_rect_c.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 15 Dec 2009 08:11:06 +0000
changeset 3565 f43c8f688f77
parent 2859 99210400e8b9
child 3697 f7b03b6838cb
permissions -rw-r--r--
Fixed bug #906

Added better error reporting for OpenGL context creation failing.
slouken@1895
     1
/*
slouken@1895
     2
    SDL - Simple DirectMedia Layer
slouken@2859
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@1895
     4
slouken@1895
     5
    This library is free software; you can redistribute it and/or
slouken@1895
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1895
     7
    License as published by the Free Software Foundation; either
slouken@1895
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1895
     9
slouken@1895
    10
    This library is distributed in the hope that it will be useful,
slouken@1895
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1895
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1895
    13
    Lesser General Public License for more details.
slouken@1895
    14
slouken@1895
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1895
    16
    License along with this library; if not, write to the Free Software
slouken@1895
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1895
    18
slouken@1895
    19
    Sam Lantinga
slouken@1895
    20
    slouken@libsdl.org
slouken@1895
    21
*/
slouken@1895
    22
#include "SDL_config.h"
slouken@1895
    23
slouken@1895
    24
typedef struct SDL_DirtyRect
slouken@1895
    25
{
slouken@1895
    26
    SDL_Rect rect;
slouken@1895
    27
    struct SDL_DirtyRect *next;
slouken@1895
    28
} SDL_DirtyRect;
slouken@1895
    29
slouken@1895
    30
typedef struct SDL_DirtyRectList
slouken@1895
    31
{
slouken@1895
    32
    SDL_DirtyRect *list;
slouken@1895
    33
    SDL_DirtyRect *free;
slouken@1895
    34
} SDL_DirtyRectList;
slouken@1895
    35
slouken@1895
    36
extern void SDL_AddDirtyRect(SDL_DirtyRectList * list, const SDL_Rect * rect);
slouken@1895
    37
extern void SDL_ClearDirtyRects(SDL_DirtyRectList * list);
slouken@1895
    38
extern void SDL_FreeDirtyRects(SDL_DirtyRectList * list);
slouken@1895
    39
slouken@1895
    40
/* vi: set ts=4 sw=4 expandtab: */