From 4f716cd540e5470470efcb713aaff298afa82415 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 16 Dec 2001 08:31:17 +0000 Subject: [PATCH] Added a callback method that allows derived classes to paint things after the base tiles have been painted, but before anything else. This allows us to paint things that appear to be on the ground (like locations). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@802 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/miso/client/IsoSceneView.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/miso/client/IsoSceneView.java b/src/java/com/threerings/miso/client/IsoSceneView.java index b06355235..d2b34f5cb 100644 --- a/src/java/com/threerings/miso/client/IsoSceneView.java +++ b/src/java/com/threerings/miso/client/IsoSceneView.java @@ -1,5 +1,5 @@ // -// $Id: IsoSceneView.java,v 1.79 2001/12/16 05:42:16 shaper Exp $ +// $Id: IsoSceneView.java,v 1.80 2001/12/16 08:31:17 mdb Exp $ package com.threerings.miso.scene; @@ -208,6 +208,7 @@ public class IsoSceneView implements SceneView { // Log.info("renderScene"); renderTiles(gfx); + renderBaseDecorations(gfx); renderDirtyItems(gfx); } @@ -244,6 +245,16 @@ public class IsoSceneView implements SceneView } } + /** + * A function where derived classes can paint things after the base + * tiles have been rendered but before anything else has been rendered + * (so that whatever is painted appears to be on the ground). + */ + protected void renderBaseDecorations (Graphics2D gfx) + { + // nothing for now + } + /** * Renders the dirty sprites and objects in the scene to the given * graphics context.