The vast and the sweeping. Modified the tile framework such that tiles no

longer provide access to their underlying image (they actually still do,
but not in the normal course of affairs). This will allow us to use
"trimmed" tiles which are trimmed to the smallest rectangle that contains
the non-transparent pixels in a tile image, which will shrink up our
components and other tiles a great deal.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1339 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-05-06 18:08:32 +00:00
parent 1c182d6e36
commit 99c4330646
24 changed files with 517 additions and 306 deletions
@@ -1,5 +1,5 @@
//
// $Id: AutoFringer.java,v 1.10 2002/05/03 04:12:48 mdb Exp $
// $Id: AutoFringer.java,v 1.11 2002/05/06 18:08:32 mdb Exp $
package com.threerings.miso.tile;
@@ -147,8 +147,8 @@ public class AutoFringer
/**
* Compose a FringeTile out of the various fringe images needed.
*/
protected Tile composeFringeTile (FringerRec[] fringers, HashMap masks,
Random rando)
protected Tile composeFringeTile (
FringerRec[] fringers, HashMap masks, Random rando)
{
// sort the array so that higher priority fringers get drawn first
QuickSort.sort(fringers);
@@ -191,7 +191,6 @@ public class AutoFringer
{
FringeConfiguration.FringeTileSetRecord tsr =
_fringeconf.getRandomFringe(baseset, rando);
int fringeset = tsr.fringe_tsid;
if (!tsr.mask) {
@@ -208,7 +207,6 @@ public class AutoFringer
img = ImageUtil.composeMaskedImage(
(BufferedImage) _tmgr.getTile(fringeset, index).getImage(),
(BufferedImage) _tmgr.getTile(baseset, 0).getImage());
masks.put(maskkey, img);
}