From d6b17cd36cd8d285edafb389f35933bde086cd48 Mon Sep 17 00:00:00 2001 From: Walter Korman Date: Tue, 22 Jan 2002 20:09:02 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/media/sprite/SpriteManager.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/java/com/threerings/media/sprite/SpriteManager.java b/src/java/com/threerings/media/sprite/SpriteManager.java index 736140da5..d5ee7459b 100644 --- a/src/java/com/threerings/media/sprite/SpriteManager.java +++ b/src/java/com/threerings/media/sprite/SpriteManager.java @@ -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; import java.awt.Graphics; import java.awt.Graphics2D; -import java.awt.Polygon; import java.awt.Rectangle; 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. * * @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 // in (or somesuch), and sorted, so that we can more quickly