2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
1998-01-22 15:02:57 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1998-01-22 15:02:57 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1998-01-22 15:02:57 +08:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1998-01-22 15:02:57 +08:00
|
|
|
*/
|
2000-12-29 23:22:01 +08:00
|
|
|
|
1998-01-22 15:02:57 +08:00
|
|
|
#ifndef __TILE_MANAGER_PVT_H__
|
|
|
|
#define __TILE_MANAGER_PVT_H__
|
|
|
|
|
|
|
|
|
1998-08-16 03:17:36 +08:00
|
|
|
struct _TileManager
|
1998-01-22 15:02:57 +08:00
|
|
|
{
|
2003-05-27 01:02:06 +08:00
|
|
|
gint ref_count; /* reference counter */
|
|
|
|
|
2001-12-03 21:44:59 +08:00
|
|
|
gint width; /* the width of the tiled area */
|
|
|
|
gint height; /* the height of the tiled area */
|
|
|
|
gint bpp; /* the bpp of each tile */
|
1998-08-16 03:17:36 +08:00
|
|
|
|
2001-12-03 21:44:59 +08:00
|
|
|
gint ntile_rows; /* the number of tiles in each row */
|
|
|
|
gint ntile_cols; /* the number of tiles in each columns */
|
1998-01-22 15:02:57 +08:00
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
Tile **tiles; /* the tiles for this level */
|
2007-06-21 22:36:58 +08:00
|
|
|
TileValidateProc validate_proc; /* this proc is called when an attempt *
|
|
|
|
* to get an invalid tile is made */
|
|
|
|
gpointer user_data; /* data to pass to the validate_proc */
|
|
|
|
|
2007-05-22 18:51:02 +08:00
|
|
|
gint cached_num; /* number of cached tile */
|
|
|
|
Tile *cached_tile; /* the actual cached tile */
|
1998-01-22 15:02:57 +08:00
|
|
|
};
|
|
|
|
|
2007-05-22 18:51:02 +08:00
|
|
|
|
1998-01-22 15:02:57 +08:00
|
|
|
#endif /* __TILE_MANAGER_PVT_H__ */
|