public class SwirlFilter extends AMaterial implements IPostProcessingFilter
Constructor and Description |
---|
SwirlFilter(float screenWidth,
float screenHeight,
float radius,
float angle) |
Modifier and Type | Method and Description |
---|---|
float |
getAngle() |
float[] |
getCenter() |
float |
getRadius() |
float |
getScreenHeight() |
float |
getScreenWidth() |
float |
getTime() |
void |
setAngle(float angle) |
void |
setCenter(float x,
float y) |
void |
setRadius(float radius) |
void |
setScreenHeight(float screenHeight) |
void |
setScreenWidth(float screenWidth) |
void |
setShaders(java.lang.String vertexShader,
java.lang.String fragmentShader) |
void |
setTime(float time) |
void |
useProgram() |
boolean |
usesDepthBuffer() |
addTexture, addTexture, addTexture, bindTextures, copyTexturesTo, getModelViewMatrix, getTextureInfoList, getUseColor, reload, setCamera, setColors, setInterpolation, setLightParams, setLights, setModelMatrix, setMVPMatrix, setNextFrameNormals, setNextFrameVertices, setNormals, setShaders, setTextureCoords, setTextureCoords, setUseColor, setVertices, setViewMatrix, toString, unbindTextures, unload
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addTexture
public SwirlFilter(float screenWidth, float screenHeight, float radius, float angle)
public boolean usesDepthBuffer()
usesDepthBuffer
in interface IPostProcessingFilter
public void useProgram()
useProgram
in class AMaterial
public void setShaders(java.lang.String vertexShader, java.lang.String fragmentShader)
setShaders
in class AMaterial
public float getTime()
public void setTime(float time)
public float getScreenWidth()
public void setScreenWidth(float screenWidth)
public float getScreenHeight()
public void setScreenHeight(float screenHeight)
public float getRadius()
public void setRadius(float radius)
public float getAngle()
public void setAngle(float angle)
public float[] getCenter()
public void setCenter(float x, float y)