public class SampledColorScaleShader extends Shader implements AxisListener1D
Constructor and Description |
---|
SampledColorScaleShader(Axis1D colorAxis,
int targetTexUnit,
int colorTexUnit) |
Modifier and Type | Method and Description |
---|---|
void |
axisUpdated(Axis1D axis) |
void |
dispose(javax.media.opengl.GLContext context) |
void |
postDisplay(javax.media.opengl.GL gl)
Called right after rendering is complete, just after reverting to the
fixed pipeline functionality.
|
void |
preDisplay(javax.media.opengl.GL gl)
Called right after this shader is made current as part of the pipeline.
|
boolean |
preLink(javax.media.opengl.GL gl,
int glProgramHandle)
Called right after the program has been compiled, but before it has been
linked.
|
void |
setAlpha(float alpha) |
void |
setColorTexUnit(int unit) |
void |
setDiscardNaN(boolean discard) |
void |
setTargetTexUnit(int unit) |
public SampledColorScaleShader(Axis1D colorAxis, int targetTexUnit, int colorTexUnit) throws IOException
colorAxis
- color axis producing eventstargetTexUnit
- 2D texture unit which is the target of color-mappingcolorTexUnit
- 1D texture unit containing color-mapIOException
- if the shader source file cannot be readpublic void setDiscardNaN(boolean discard)
public void setAlpha(float alpha)
public boolean preLink(javax.media.opengl.GL gl, int glProgramHandle)
Shader
public void preDisplay(javax.media.opengl.GL gl)
Shader
preDisplay
in class Shader
public void postDisplay(javax.media.opengl.GL gl)
Shader
postDisplay
in class Shader
public void axisUpdated(Axis1D axis)
axisUpdated
in interface AxisListener1D
public void setTargetTexUnit(int unit)
public void setColorTexUnit(int unit)
Copyright © 2016 Metron, Inc.. All rights reserved.