public class SimpleShader extends Shader
Constructor and Description |
---|
SimpleShader(String name,
ShaderType type,
String shaderFile) |
Modifier and Type | Method and Description |
---|---|
static ShaderSource |
getSource(String shaderFile) |
static Shader |
passFragment() |
static Shader |
passVertex() |
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.
|
public SimpleShader(String name, ShaderType type, String shaderFile)
public static Shader passVertex()
public static Shader passFragment()
public static ShaderSource getSource(String shaderFile)
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
Copyright © 2013 Metron, Inc.. All rights reserved.