Reduced the specificity of the object detailing the bounds within which to

render sprites to a Shape rather than a Polygon.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@889 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-01-22 20:09:02 +00:00
parent 651ff37b66
commit d6b17cd36c
@@ -1,11 +1,10 @@
// //
// $Id: SpriteManager.java,v 1.18 2002/01/22 18:58:52 shaper Exp $ // $Id: SpriteManager.java,v 1.19 2002/01/22 20:09:02 shaper Exp $
package com.threerings.media.sprite; package com.threerings.media.sprite;
import java.awt.Graphics; import java.awt.Graphics;
import java.awt.Graphics2D; import java.awt.Graphics2D;
import java.awt.Polygon;
import java.awt.Rectangle; import java.awt.Rectangle;
import java.awt.Shape; import java.awt.Shape;
@@ -100,13 +99,13 @@ public class SpriteManager
} }
/** /**
* Render the sprites residing within the given polygon to the given * Render the sprites residing within the given shape to the given
* graphics context. * graphics context.
* *
* @param gfx the graphics context. * @param gfx the graphics context.
* @param bounds the bounding polygon. * @param bounds the bounding shape.
*/ */
public void renderSprites (Graphics2D gfx, Polygon bounds) public void renderSprites (Graphics2D gfx, Shape bounds)
{ {
// TODO: optimize to store sprites based on quadrants they're // TODO: optimize to store sprites based on quadrants they're
// in (or somesuch), and sorted, so that we can more quickly // in (or somesuch), and sorted, so that we can more quickly