Use an array to mark dirty tiles. Added double-buffering to the

SceneViewPanel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@194 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-08-08 03:19:39 +00:00
parent 6b423cd53a
commit 49764d7b79
4 changed files with 90 additions and 44 deletions
@@ -1,5 +1,5 @@
//
// $Id: ViewerSceneViewPanel.java,v 1.3 2001/08/07 18:29:18 shaper Exp $
// $Id: ViewerSceneViewPanel.java,v 1.4 2001/08/08 03:19:39 shaper Exp $
package com.threerings.miso.viewer;
@@ -40,7 +40,7 @@ public class ViewerSceneViewPanel extends SceneViewPanel
// load up the initial scene
prepareStartingScene();
((EditableSceneView)_view).setShowCoordinates(true);
//((EditableSceneView)_view).setShowCoordinates(true);
PerformanceMonitor.register(this, "paint", 1000);
}
@@ -100,7 +100,7 @@ public class ViewerSceneViewPanel extends SceneViewPanel
}
// hackily highlight the tile that was clicked on for happy testing
((EditableSceneView)_view).setHighlightedTile(x, y);
// ((EditableSceneView)_view).setHighlightedTile(x, y);
}
public void mouseClicked (MouseEvent e) { }