public abstract class LayerRenderer
extends java.lang.Object
| Constructor and Description |
|---|
LayerRenderer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReady() |
abstract void |
render(GLViewport viewport)
2.
|
protected void |
setReady(boolean ready)
Set 'ready for render' state when layer data is ready for rendering.
|
boolean |
setup()
0.
|
abstract void |
update(GLViewport viewport)
1.
|
protected void setReady(boolean ready)
ready - true if render() should be called, false otherwise.public boolean isReady()
public boolean setup()
public abstract void update(GLViewport viewport)
position - current MapPositionchanged - true when MapPosition has changed since last framematrices - contains the current view- and projection-matrices
and 'mvp' matrix for temporary use.public abstract void render(GLViewport viewport)
position - current MapPositionmatrices - contains the current view- and projection-matrices.
'matrices.mvp' is for temporary use to build the model-
view-projection to set as uniform.