com.metsci.glimpse.support.shader
Class SimplePointShader
java.lang.Object
com.metsci.glimpse.gl.shader.Shader
com.metsci.glimpse.support.shader.SimplePointShader
- Direct Known Subclasses:
- TaggedPointShader
public class SimplePointShader
- extends Shader
Constructor Summary |
SimplePointShader(int colorTextureUnit,
int sizeTextureUnit,
int colorAttributeIndex,
int sizeAttributeIndex,
Axis1D colorAxis,
Axis1D sizeAxis)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimplePointShader
public SimplePointShader(int colorTextureUnit,
int sizeTextureUnit,
int colorAttributeIndex,
int sizeAttributeIndex,
Axis1D colorAxis,
Axis1D sizeAxis)
throws java.io.IOException
- Throws:
java.io.IOException
preLink
public boolean preLink(javax.media.opengl.GL gl,
int glProgramHandle)
- Description copied from class:
Shader
- Called right after the program has been compiled, but before it has been
linked.
- Specified by:
preLink
in class Shader
- Returns:
- false if any problems specific to this shader are found, true
otherwise
preDisplay
public void preDisplay(javax.media.opengl.GL gl)
- Description copied from class:
Shader
- Called right after this shader is made current as part of the pipeline.
Use this method to update uniform variables for this shader.
- Specified by:
preDisplay
in class Shader
postDisplay
public void postDisplay(javax.media.opengl.GL gl)
- Description copied from class:
Shader
- Called right after rendering is complete, just after reverting to the
fixed pipeline functionality. Use this method for any necessary cleanup
specific to this shader.
- Specified by:
postDisplay
in class Shader
setConstantColor
public void setConstantColor(boolean constant)
setConstantSize
public void setConstantSize(boolean constant)
setDiscardAboveSize
public void setDiscardAboveSize(boolean discard)
setDiscardBelowSize
public void setDiscardBelowSize(boolean discard)
setDiscardAboveColor
public void setDiscardAboveColor(boolean discard)
setDiscardBelowColor
public void setDiscardBelowColor(boolean discard)
Copyright © 2012 Metron, Inc.. All Rights Reserved.