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:
@@ -34,7 +34,7 @@ import java.awt.image.BufferStrategy;
|
||||
*/
|
||||
public class FlipFrameManager extends FrameManager
|
||||
{
|
||||
// documentation inherited
|
||||
// from FrameManager
|
||||
protected void paint (long tickStamp)
|
||||
{
|
||||
// create our buffer strategy if we don't already have one
|
||||
@@ -90,7 +90,13 @@ public class FlipFrameManager extends FrameManager
|
||||
} while (_bufstrat.contentsLost());
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
// from FrameManager
|
||||
protected Graphics2D createGraphics ()
|
||||
{
|
||||
return (Graphics2D)_bufstrat.getDrawGraphics();
|
||||
}
|
||||
|
||||
// from FrameManager
|
||||
protected void restoreFromBack (Rectangle dirty)
|
||||
{
|
||||
// nothing doing
|
||||
|
||||
Reference in New Issue
Block a user