public class ShaderProgramOperation extends java.lang.Object implements RenderOperation
ShaderProgram
Modifier and Type | Field and Description |
---|---|
protected com.badlogic.gdx.graphics.glutils.ShaderProgram |
shaderProgram |
Constructor and Description |
---|
ShaderProgramOperation(com.badlogic.gdx.files.FileHandle vertexShader,
com.badlogic.gdx.files.FileHandle fragmentShader) |
ShaderProgramOperation(com.badlogic.gdx.graphics.glutils.ShaderProgram shaderProgram) |
Modifier and Type | Method and Description |
---|---|
void |
apply(GameContainer gc,
Graphics g) |
void |
interpolate(GameContainer gc,
float alpha) |
void |
unapply(GameContainer gc,
Graphics g) |
void |
update(GameContainer gc,
float delta) |
protected final com.badlogic.gdx.graphics.glutils.ShaderProgram shaderProgram
public ShaderProgramOperation(com.badlogic.gdx.files.FileHandle vertexShader, com.badlogic.gdx.files.FileHandle fragmentShader)
public ShaderProgramOperation(com.badlogic.gdx.graphics.glutils.ShaderProgram shaderProgram)
public void update(GameContainer gc, float delta)
update
in interface RenderOperation
public void interpolate(GameContainer gc, float alpha)
interpolate
in interface RenderOperation
public void apply(GameContainer gc, Graphics g)
apply
in interface RenderOperation
public void unapply(GameContainer gc, Graphics g)
unapply
in interface RenderOperation