public class SimplePointShader extends Shader
Constructor and Description |
---|
SimplePointShader(int colorTextureUnit,
int sizeTextureUnit,
int colorAttributeIndex,
int sizeAttributeIndex,
Axis1D colorAxis,
Axis1D sizeAxis) |
Modifier and Type | Method and Description |
---|---|
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) |
public SimplePointShader(int colorTextureUnit, int sizeTextureUnit, int colorAttributeIndex, int sizeAttributeIndex, Axis1D colorAxis, Axis1D sizeAxis) throws IOException
IOException
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 setConstantColor(boolean constant)
public void setConstantSize(boolean constant)
public void setDiscardAboveSize(boolean discard)
public void setDiscardBelowSize(boolean discard)
public void setDiscardAboveColor(boolean discard)
public void setDiscardBelowColor(boolean discard)
Copyright © 2016 Metron, Inc.. All rights reserved.