1 /* Pongix - clone of the "Pong" video game with net support
2  * Copyright (C) 2005 - Hugo Ruscitti (see AUTHORS file)
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
17  */
18 
19 #ifndef _DIRTY_
20 #define _DIRTY_
21 
22 #include "util.h"
23 
24 typedef struct
25 {
26 	struct mundo * mundo;
27 	SDL_Rect actuales [200];
28 	int limite_actuales;
29 } Dirty;
30 
31 
32 Dirty * dirty_iniciar (void);
33 void dirty_agregar (Dirty * data, SDL_Rect rect);
34 void dirty_agregar_pantalla_completa (Dirty * data);
35 void dirty_terminar (Dirty * data);
36 void dirty_actualizar (Dirty * data, SDL_Surface * screen, SDL_Surface * fondo);
37 void dirty_copiar (SDL_Rect * dst, SDL_Rect * src, int * lim_dst, int lim_src);
38 
39 #endif
40