public class RetroShader
Loads shaders and sets up some vertex attributes format of RetroArch shaders
Constructor and Description |
---|
RetroShader(java.lang.String filename)
Loads shaders and sets up some vertex attributes format of RetroArch shaders
|
Modifier and Type | Method and Description |
---|---|
com.badlogic.gdx.graphics.glutils.ShaderProgram |
getShader() |
void |
process(com.badlogic.gdx.graphics.g2d.SpriteBatch fboBatch,
com.badlogic.gdx.math.Vector2 textureSize,
com.badlogic.gdx.math.Vector2 inputSize,
com.badlogic.gdx.math.Vector2 outputSize) |
void |
setShader(com.badlogic.gdx.graphics.glutils.ShaderProgram p) |
public RetroShader(java.lang.String filename)
Loads shaders and sets up some vertex attributes format of RetroArch shaders
public com.badlogic.gdx.graphics.glutils.ShaderProgram getShader()
public void setShader(com.badlogic.gdx.graphics.glutils.ShaderProgram p)
public void process(com.badlogic.gdx.graphics.g2d.SpriteBatch fboBatch, com.badlogic.gdx.math.Vector2 textureSize, com.badlogic.gdx.math.Vector2 inputSize, com.badlogic.gdx.math.Vector2 outputSize)