public class GPUImageSwirlFilter extends GPUImageFilter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SWIRL_FRAGMENT_SHADER |
NO_FILTER_FRAGMENT_SHADER, NO_FILTER_VERTEX_SHADER| Constructor and Description |
|---|
GPUImageSwirlFilter() |
GPUImageSwirlFilter(float radius,
float angle,
android.graphics.PointF center) |
| Modifier and Type | Method and Description |
|---|---|
void |
onInit() |
void |
onInitialized() |
void |
setAngle(float angle)
The amount of distortion to apply, with a minimum of 0.0 and a default of 1.0.
|
void |
setCenter(android.graphics.PointF center)
The center about which to apply the distortion, with a default of (0.5, 0.5).
|
void |
setRadius(float radius)
The radius of the distortion, ranging from 0.0 to 1.0, with a default of 0.5.
|
convertStreamToString, destroy, getAttribPosition, getAttribTextureCoordinate, getOutputHeight, getOutputWidth, getProgram, getUniformTexture, ifNeedInit, isInitialized, loadShader, onDestroy, onDraw, onDrawArraysPre, onOutputSizeChanged, runOnDraw, runPendingOnDrawTasks, setFloat, setFloatArray, setFloatVec2, setFloatVec3, setFloatVec4, setInteger, setPoint, setUniformMatrix3f, setUniformMatrix4fpublic static final java.lang.String SWIRL_FRAGMENT_SHADER
public GPUImageSwirlFilter()
public GPUImageSwirlFilter(float radius,
float angle,
android.graphics.PointF center)
public void onInit()
onInit in class GPUImageFilterpublic void onInitialized()
onInitialized in class GPUImageFilterpublic void setRadius(float radius)
radius - from 0.0 to 1.0, default 0.5public void setAngle(float angle)
angle - minimum 0.0, default 1.0public void setCenter(android.graphics.PointF center)
center - default (0.5, 0.5)