public abstract class SurfaceTileRenderer extends Object implements Disposable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SurfaceTileRenderer.Transform |
| Modifier and Type | Field and Description |
|---|---|
protected Texture |
alphaTexture |
protected Texture |
outlineTexture |
| Constructor and Description |
|---|
SurfaceTileRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
computeTextureTransform(DrawContext dc,
SurfaceTile tile,
SurfaceTileRenderer.Transform t) |
void |
dispose()
Free internal resources held by this surface tile renderer.
|
protected abstract Iterable<SurfaceTile> |
getIntersectingTiles(DrawContext dc,
SectorGeometry sg,
Iterable<? extends SurfaceTile> tiles) |
protected void |
initAlphaTexture(DrawContext dc,
int size) |
protected void |
initOutlineTexture(DrawContext dc,
int size) |
boolean |
isShowImageTileOutlines() |
protected abstract void |
preComputeTextureTransform(DrawContext dc,
SectorGeometry sg,
SurfaceTileRenderer.Transform t) |
void |
renderTile(DrawContext dc,
SurfaceTile tile) |
void |
renderTiles(DrawContext dc,
Iterable<? extends SurfaceTile> tiles) |
void |
setShowImageTileOutlines(boolean showImageTileOutlines) |
protected Texture alphaTexture
protected Texture outlineTexture
protected abstract void computeTextureTransform(DrawContext dc, SurfaceTile tile, SurfaceTileRenderer.Transform t)
public void dispose()
dispose in interface DisposableGLException - - If an OpenGL context is not current when this method is called.protected abstract Iterable<SurfaceTile> getIntersectingTiles(DrawContext dc, SectorGeometry sg, Iterable<? extends SurfaceTile> tiles)
protected void initAlphaTexture(DrawContext dc, int size)
protected void initOutlineTexture(DrawContext dc, int size)
public boolean isShowImageTileOutlines()
protected abstract void preComputeTextureTransform(DrawContext dc, SectorGeometry sg, SurfaceTileRenderer.Transform t)
public void renderTile(DrawContext dc, SurfaceTile tile)
public void renderTiles(DrawContext dc, Iterable<? extends SurfaceTile> tiles)
public void setShowImageTileOutlines(boolean showImageTileOutlines)