Enhancements to support simple scrolling. A number of things don't work if
the view is scrolled, like object tiles, mouse coordinate computation and pretty much anything other than rendering a scrolling background under some sprites. Someday we'll probably want to sort out all that other business, but not under current monthstone circumstances. Note: the scrolling still feels a bit choppy (even under Windows) which is annoying, but I'm doing everything by the book and have spent too much time fine tuning it already, so we'll have to come back to this later if we're not happy with the visuals. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1012 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SceneView.java,v 1.23 2002/01/31 01:07:02 mdb Exp $
|
||||
// $Id: SceneView.java,v 1.24 2002/02/17 23:45:36 mdb Exp $
|
||||
|
||||
package com.threerings.miso.scene;
|
||||
|
||||
@@ -34,6 +34,15 @@ public interface SceneView
|
||||
*/
|
||||
public void invalidateRect (Rectangle rect);
|
||||
|
||||
/**
|
||||
* Scrolls the view by the requested number of pixels. As the view is
|
||||
* not responsible for maintaining the back buffer, this will simply
|
||||
* dirty the regions exposed by scrolling and update the view's
|
||||
* internal offsets. It also instructs the sprite manager to dirty the
|
||||
* scrolled bounds of all sprites in the view.
|
||||
*/
|
||||
public void scrollView (int dx, int dy);
|
||||
|
||||
/**
|
||||
* Renders the scene to the given graphics context.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user