A whole bunch of refactoring to support a MediaOverlay which will allow us to
render sprites and animations anywhere in the frame for those times when you just need to draw outside the lines. The actual MediaOverlay isn't done yet, but all the refactoring to support it is done, so the rest should be easy. In theory this shouldn't break anything (like the Yohoho build), but we're about to find out. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@112 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -32,7 +32,7 @@ import java.awt.image.VolatileImage;
|
||||
*/
|
||||
public class BackFrameManager extends FrameManager
|
||||
{
|
||||
// documentation inherited
|
||||
// from FrameManager
|
||||
protected void paint (long tickStamp)
|
||||
{
|
||||
// start out assuming we can do an incremental render
|
||||
@@ -63,7 +63,7 @@ public class BackFrameManager extends FrameManager
|
||||
if (_bgfx != null) {
|
||||
_bgfx.dispose();
|
||||
}
|
||||
_bgfx = (Graphics2D)_backimg.getGraphics();
|
||||
_bgfx = _backimg.createGraphics();
|
||||
if (_fgfx != null) {
|
||||
_fgfx.dispose();
|
||||
_fgfx = null;
|
||||
@@ -95,7 +95,13 @@ public class BackFrameManager extends FrameManager
|
||||
} while (_backimg.contentsLost());
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
// from FrameManager
|
||||
protected Graphics2D createGraphics ()
|
||||
{
|
||||
return _backimg.createGraphics();
|
||||
}
|
||||
|
||||
// from FrameManager
|
||||
protected void restoreFromBack (Rectangle dirty)
|
||||
{
|
||||
if (_fgfx == null || _backimg == null) {
|
||||
|
||||
Reference in New Issue
Block a user