tile-manager-private

tile-manager-private

Synopsis

                    TileManager;

Object Hierarchy

  GBoxed
   +----TileManager

Description

Details

TileManager

typedef struct {
  gint               ref_count;     /*  reference counter                    */

  gint               width;         /*  the width of the tiled area          */
  gint               height;        /*  the height of the tiled area         */
  gint               bpp;           /*  the bpp of each tile                 */

  gint               ntile_rows;    /*  the number of tiles in each row      */
  gint               ntile_cols;    /*  the number of tiles in each columns  */

  Tile             **tiles;         /*  the tiles for this level             */
  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    */

  gint               cached_num;    /*  number of cached tile                */
  Tile              *cached_tile;   /*  the actual cached tile               */
} TileManager;