public class TextureAtlasIconShaderFragment extends Shader
IconPainter
. Normally
simply colors the fragment based on the provided texture coordinates. However, in picking mode,
the shader substitutes non-transparent elements of the texture for the pick color for the given icon.Constructor and Description |
---|
TextureAtlasIconShaderFragment(int textureUnit,
boolean enablePicking) |
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 |
setPickMode(boolean pickMode) |
public TextureAtlasIconShaderFragment(int textureUnit, boolean enablePicking)
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 setPickMode(boolean pickMode)
Copyright © 2016 Metron, Inc.. All rights reserved.