Initial work on making use of full-screen exclusive mode and additional

rendering optimizations available in JDK 1.4.  Use a BufferStrategy, and
changed AnimatedPanel to extend Canvas rather than JPanel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@847 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-01-08 22:16:59 +00:00
parent df14615e11
commit e3c4fd02b7
9 changed files with 159 additions and 116 deletions
@@ -1,15 +1,17 @@
//
// $Id: SceneViewPanel.java,v 1.21 2001/11/29 20:33:16 mdb Exp $
// $Id: SceneViewPanel.java,v 1.22 2002/01/08 22:16:59 shaper Exp $
package com.threerings.miso.scene;
import java.awt.*;
import java.util.List;
import javax.swing.*;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Rectangle;
import com.samskivert.util.Config;
import com.threerings.media.sprite.*;
import com.threerings.media.sprite.AnimatedPanel;
import com.threerings.media.sprite.DirtyRectList;
import com.threerings.media.sprite.SpriteManager;
import com.threerings.miso.util.MisoUtil;
/**
@@ -82,6 +84,12 @@ public class SceneViewPanel extends AnimatedPanel
_view.invalidateRects(rects);
}
// documentation inherited
public void invalidateRect (Rectangle rect)
{
_view.invalidateRect(rect);
}
/**
* Returns the desired size for the panel based on the requested
* and calculated bounds of the scene view.