public abstract class TileRenderer extends LayerRenderer
| Modifier and Type | Field and Description |
|---|---|
protected static float |
FADE_TIME
fade-in time
|
protected static int |
MAX_TILE_LOAD |
protected TileSet |
mDrawTiles |
protected float |
mLayerAlpha |
protected int |
mOverdrawColor |
protected int |
mProxyTileCnt |
| Constructor and Description |
|---|
TileRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearTiles() |
static long |
getMinFade(MapTile tile,
int proxyLevel) |
boolean |
getVisibleTiles(TileSet tileSet)
Update tileSet with currently visible tiles get a TileSet of currently
visible tiles
|
void |
releaseTiles(TileSet tileSet) |
void |
setBitmapAlpha(float alpha)
Threadsafe
|
void |
setOverdrawColor(int color)
Threadsafe
|
protected void |
setTileManager(TileManager tileManager) |
void |
update(GLViewport v)
synced with clearTiles, setOverdrawColor and setBitmapAlpha
|
isReady, render, setReady, setupprotected static final float FADE_TIME
protected static final int MAX_TILE_LOAD
protected final TileSet mDrawTiles
protected int mProxyTileCnt
protected int mOverdrawColor
protected float mLayerAlpha
protected void setTileManager(TileManager tileManager)
public void setOverdrawColor(int color)
public void setBitmapAlpha(float alpha)
public void update(GLViewport v)
update in class LayerRendererpublic void clearTiles()
public boolean getVisibleTiles(TileSet tileSet)
public void releaseTiles(TileSet tileSet)
public static long getMinFade(MapTile tile, int proxyLevel)
proxyLevel - zoom-level of tile relative to current TileSet