Modified rendering to use a hand managed volatile image as a back buffer

instead of using a buffer strategy. This will shortly be extended to
support more efficient scrolling as well.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1021 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-19 01:23:56 +00:00
parent 8d56ec853a
commit 63a32a6332
3 changed files with 112 additions and 107 deletions
@@ -1,5 +1,5 @@
//
// $Id: AnimatedView.java,v 1.2 2002/02/17 23:39:32 mdb Exp $
// $Id: AnimatedView.java,v 1.3 2002/02/19 01:23:56 mdb Exp $
package com.threerings.media.animation;
@@ -14,32 +14,14 @@ import java.util.List;
*/
public interface AnimatedView
{
/**
* Invalidate a list of rectangles in screen pixel coordinates in the
* scene view for later repainting.
*
* @param rects the list of {@link java.awt.Rectangle} objects.
*/
public void invalidateRects (List rects);
/**
* Invalidates a rectangle in screen pixel coordinates in the scene
* view for later repainting.
*
* @param rect the {@link java.awt.Rectangle} to dirty.
*/
public void invalidateRect (Rectangle rect);
/**
* Requests that the animated view paint itself immediately (that it
* complete the painting process before returning from this function).
* This will only be called on the AWT thread and when it is safe to
* paint.
*
* @param invalidRectCount the number of invalide regions that
* motivated the animation manager to repaint the animated view (which
* could be zero if the view is scrolling and otherwise has no dirty
* regions)
* @param invalidRects the list of rectangles that have been
* invalidated since the last call to this method.
*/
public void paintImmediately (int invalidRectCount);
public void paintImmediately (List invalidRects);
}