com.metsci.glimpse.support.shader
Class SimplePointShader

java.lang.Object
  extended by com.metsci.glimpse.gl.shader.Shader
      extended by 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)
           
 
Method Summary
 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 setConstantColor(boolean constant)
           
 void setConstantSize(boolean constant)
           
 void setDiscardAboveColor(boolean discard)
           
 void setDiscardAboveSize(boolean discard)
           
 void setDiscardBelowColor(boolean discard)
           
 void setDiscardBelowSize(boolean discard)
           
 
Methods inherited from class com.metsci.glimpse.gl.shader.Shader
dispose, getName, getSource, getType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimplePointShader

public SimplePointShader(int colorTextureUnit,
                         int sizeTextureUnit,
                         int colorAttributeIndex,
                         int sizeAttributeIndex,
                         Axis1D colorAxis,
                         Axis1D sizeAxis)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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.