public class BucketRenderer extends LayerRenderer
| Modifier and Type | Field and Description |
|---|---|
RenderBuckets |
buckets
Buckets for rendering
|
static org.slf4j.Logger |
log |
protected boolean |
mFlipOnDateLine
Wrap around dateline
|
protected boolean |
mInitialized |
protected MapPosition |
mMapPosition
Use mMapPosition.copy(position) to keep the position for which
the Overlay is *compiled*.
|
| Constructor and Description |
|---|
BucketRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compile()
Compile all buckets into one BufferObject.
|
void |
render(GLViewport v)
Render all 'buckets'
|
protected void |
setMatrix(GLMatrix mvp,
GLViewport v,
boolean project,
float coordScale) |
protected void |
setMatrix(GLViewport v)
Utility: Set matrices.mvp matrix relative to the difference of current
MapPosition and the last updated Overlay MapPosition and applies
view-projection-matrix.
|
protected void |
setMatrix(GLViewport v,
boolean project)
Utility: Set matrices.mvp matrix relative to the difference of current
MapPosition and the last updated Overlay MapPosition.
|
protected void |
setMatrix(GLViewport v,
boolean project,
float coordScale) |
void |
update(GLViewport v)
Default implementation:
Copy initial Viewport position and compile buckets.
|
isReady, setReady, setuppublic static final org.slf4j.Logger log
protected MapPosition mMapPosition
protected boolean mFlipOnDateLine
public final RenderBuckets buckets
protected boolean mInitialized
public void update(GLViewport v)
update in class LayerRendererpublic void render(GLViewport v)
render in class LayerRendererprotected void compile()
protected void setMatrix(GLViewport v, boolean project)
v - GLViewportproject - if true apply view- and projection, or just view otherwise.protected void setMatrix(GLViewport v, boolean project, float coordScale)
protected void setMatrix(GLMatrix mvp, GLViewport v, boolean project, float coordScale)
protected void setMatrix(GLViewport v)