de.fhpotsdam.unfolding.mapdisplay.shaders
Class MapDisplayShader
java.lang.Object
de.fhpotsdam.unfolding.mapdisplay.shaders.MapDisplayShader
- Direct Known Subclasses:
- BlurredMapDisplayShader, MaskedMapDisplayShader
public class MapDisplayShader
- extends java.lang.Object
Field Summary |
protected processing.core.PApplet |
p
|
protected processing.opengl.PShader |
shader
|
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p
protected processing.core.PApplet p
shader
protected processing.opengl.PShader shader
MapDisplayShader
public MapDisplayShader(processing.core.PApplet p)
getShader
public processing.opengl.PShader getShader()
resize
public void resize(float width,
float height)
- Resizes the shader. Optional, only implement if needed.
- Parameters:
width
- The new width of the canvas.height
- The new height of the canvas.
shadeWithoutMarkers
public void shadeWithoutMarkers(processing.core.PGraphics innerCanvas)
- Applies the shader to the map display canvas.
- Parameters:
innerCanvas
- The inner canvas.
shadeWithMarkers
public void shadeWithMarkers(processing.core.PGraphics innerCanvas)