Revamped iso scene rendering yet again to remove unnecessary dirty

rectangle propagation and to only render the dirty portions of dirty
objects and sprites.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@509 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-10-19 23:26:31 +00:00
parent 9b89a3f994
commit ef97b42acd
4 changed files with 102 additions and 161 deletions
@@ -1,5 +1,5 @@
//
// $Id: IsoUtil.java,v 1.10 2001/10/18 20:24:05 shaper Exp $
// $Id: IsoUtil.java,v 1.11 2001/10/19 23:26:31 shaper Exp $
package com.threerings.miso.scene.util;
@@ -204,11 +204,17 @@ public class IsoUtil
}
}
/**
* Returns the tile coordinate of the given full coordinate.
*/
public static int fullToTile (int val)
{
return (val / FULL_TILE_FACTOR);
}
/**
* Returns the fine coordinate of the given full coordinate.
*/
public static int fullToFine (int val)
{
return (val - ((val / FULL_TILE_FACTOR) * FULL_TILE_FACTOR));