public class TiledImageRenderer extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TiledImageRenderer.TileSource
Interface for providing tiles to a
TiledImageRenderer |
Modifier and Type | Field and Description |
---|---|
protected int |
mCenterX |
protected int |
mCenterY |
protected int |
mImageHeight |
protected int |
mImageWidth |
protected int |
mLevelCount |
protected int |
mRotation |
protected float |
mScale |
static int |
SIZE_UNKNOWN |
Constructor and Description |
---|
TiledImageRenderer(View parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
draw(GLCanvas canvas) |
void |
freeTextures() |
int |
getViewHeight() |
int |
getViewWidth() |
void |
notifyModelInvalidated() |
void |
setModel(TiledImageRenderer.TileSource model,
int rotation) |
void |
setPosition(int centerX,
int centerY,
float scale) |
void |
setViewSize(int width,
int height) |
static int |
suggestedTileSize(Context context) |
public static final int SIZE_UNKNOWN
protected int mLevelCount
protected int mImageWidth
protected int mImageHeight
protected int mCenterX
protected int mCenterY
protected float mScale
protected int mRotation
public TiledImageRenderer(View parent)
public static int suggestedTileSize(Context context)
public int getViewWidth()
public int getViewHeight()
public void setModel(TiledImageRenderer.TileSource model, int rotation)
public void notifyModelInvalidated()
public void setViewSize(int width, int height)
public void setPosition(int centerX, int centerY, float scale)
public void freeTextures()
public boolean draw(GLCanvas canvas)