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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user