Finished support for shadows. This is all some seriously complicated shit, but
the shadows sure look cool. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3740 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: VolatileMirage.java,v 1.6 2004/08/27 02:12:38 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -83,6 +83,26 @@ public abstract class VolatileMirage implements Mirage
|
||||
// TODO: note number of attempted renders for performance
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the x offset into our source image, which is generally zero but
|
||||
* may be non-zero for a mirage that obtains its data from a region of its
|
||||
* source image.
|
||||
*/
|
||||
public int getX ()
|
||||
{
|
||||
return _bounds.x;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the y offset into our source image, which is generally zero but
|
||||
* may be non-zero for a mirage that obtains its data from a region of its
|
||||
* source image.
|
||||
*/
|
||||
public int getY ()
|
||||
{
|
||||
return _bounds.y;
|
||||
}
|
||||
|
||||
// documentation inherited from interface
|
||||
public int getWidth ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user