public class MapDisplayShader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected processing.core.PApplet |
p |
protected processing.opengl.PShader |
shader |
| Constructor and Description |
|---|
MapDisplayShader(processing.core.PApplet p) |
| Modifier and Type | Method and Description |
|---|---|
processing.opengl.PShader |
getShader() |
void |
resize(float width,
float height)
Resizes the shader.
|
void |
shadeWithMarkers(processing.core.PGraphics innerCanvas) |
void |
shadeWithoutMarkers(processing.core.PGraphics innerCanvas)
Applies the shader to the map display canvas.
|
protected processing.core.PApplet p
protected processing.opengl.PShader shader
public processing.opengl.PShader getShader()
public void resize(float width,
float height)
width - The new width of the canvas.height - The new height of the canvas.public void shadeWithoutMarkers(processing.core.PGraphics innerCanvas)
innerCanvas - The inner canvas.public void shadeWithMarkers(processing.core.PGraphics innerCanvas)