cif: TiPlaneRect const ripple

This commit is contained in:
Darryl L. Miles 2025-01-31 16:34:01 +00:00 committed by R. Timothy Edwards
parent 16efabe9ee
commit 5b03081d03
2 changed files with 7 additions and 7 deletions

View File

@ -79,7 +79,7 @@ static Plane *cifPlane; /* Plane acted on by search functions. */
static int cifScale; /* Scale factor to use on tiles. */ static int cifScale; /* Scale factor to use on tiles. */
extern void cifClipPlane(Plane *plane, Rect *clip); extern void cifClipPlane(Plane *plane, Rect *clip);
extern void cifGenClip(Rect *area, Rect *expanded, Rect *clip); extern void cifGenClip(const Rect *area, Rect *expanded, Rect *clip);
/* /*
* ---------------------------------------------------------------------------- * ----------------------------------------------------------------------------
@ -3995,7 +3995,7 @@ cifSquareGridFunc(
void void
cifSrTiles( cifSrTiles(
CIFOp *cifOp, /* Geometric operation being processed. */ CIFOp *cifOp, /* Geometric operation being processed. */
Rect *area, /* Area of Magic paint to consider. */ const Rect *area, /* Area of Magic paint to consider. */
CellDef *cellDef, /* CellDef to search for paint. */ CellDef *cellDef, /* CellDef to search for paint. */
Plane *temps[], /* Planes to use for temporaries. */ Plane *temps[], /* Planes to use for temporaries. */
int (*func)(), /* Search function to pass to DBSrPaintArea. */ int (*func)(), /* Search function to pass to DBSrPaintArea. */
@ -4896,7 +4896,7 @@ cifInteractingRegions(
Plane * Plane *
CIFGenLayer( CIFGenLayer(
CIFOp *op, /* List of CIFOps telling how to make layer. */ CIFOp *op, /* List of CIFOps telling how to make layer. */
Rect *area, /* Area to consider when generating CIF. Only const Rect *area, /* Area to consider when generating CIF. Only
* material in this area will be considered, so * material in this area will be considered, so
* the caller should usually expand his desired * the caller should usually expand his desired
* area by one CIF radius. * area by one CIF radius.
@ -5529,7 +5529,7 @@ void
CIFGen( CIFGen(
CellDef *cellDef, /* Cell for which CIF is to be generated. */ CellDef *cellDef, /* Cell for which CIF is to be generated. */
CellDef *origDef, /* Original cell, if different from cellDef */ CellDef *origDef, /* Original cell, if different from cellDef */
Rect *area, /* Any CIF overlapping this area (in coords const Rect *area, /* Any CIF overlapping this area (in coords
* of cellDef) will be generated. The CIF * of cellDef) will be generated. The CIF
* will be clipped to this area. * will be clipped to this area.
*/ */
@ -5695,7 +5695,7 @@ cifClipPlane(
void void
cifGenClip( cifGenClip(
Rect *area, /* Any CIF overlapping this area (in coords const Rect *area, /* Any CIF overlapping this area (in coords
* of cellDef) will be generated. The CIF * of cellDef) will be generated. The CIF
* will be clipped to this area. * will be clipped to this area.
*/ */

View File

@ -329,10 +329,10 @@ typedef struct cifstyle
extern bool CIFNameToMask(char *name, TileTypeBitMask *result, TileTypeBitMask *depend); extern bool CIFNameToMask(char *name, TileTypeBitMask *result, TileTypeBitMask *depend);
extern void CIFGenSubcells(CellDef *def, Rect *area, Plane **output); extern void CIFGenSubcells(CellDef *def, Rect *area, Plane **output);
extern void CIFGenArrays(CellDef *def, Rect *area, Plane **output); extern void CIFGenArrays(CellDef *def, Rect *area, Plane **output);
extern void CIFGen(CellDef *cellDef, CellDef *origDef, Rect *area, Plane **planes, TileTypeBitMask *layers, extern void CIFGen(CellDef *cellDef, CellDef *origDef, const Rect *area, Plane **planes, TileTypeBitMask *layers,
bool replace, bool genAllPlanes, bool hier, ClientData clientdata); bool replace, bool genAllPlanes, bool hier, ClientData clientdata);
extern void CIFClearPlanes(Plane **planes); extern void CIFClearPlanes(Plane **planes);
extern Plane *CIFGenLayer(CIFOp *op, Rect *area, CellDef *cellDef, CellDef *origDef, Plane *temps[], extern Plane *CIFGenLayer(CIFOp *op, const Rect *area, CellDef *cellDef, CellDef *origDef, Plane *temps[],
bool hier, ClientData clientdata); bool hier, ClientData clientdata);
extern void CIFInitCells(void); extern void CIFInitCells(void);
extern int cifHierCopyFunc(Tile *tile, TreeContext *cxp); extern int cifHierCopyFunc(Tile *tile, TreeContext *cxp);