public class GPUImageCrosshatchFilter extends GPUImageFilter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CROSSHATCH_FRAGMENT_SHADER |
NO_FILTER_FRAGMENT_SHADER, NO_FILTER_VERTEX_SHADER| Constructor and Description |
|---|
GPUImageCrosshatchFilter()
Using default values of crossHatchSpacing: 0.03f and lineWidth: 0.003f.
|
GPUImageCrosshatchFilter(float crossHatchSpacing,
float lineWidth) |
| Modifier and Type | Method and Description |
|---|---|
void |
onInit() |
void |
onInitialized() |
void |
setCrossHatchSpacing(float crossHatchSpacing)
The fractional width of the image to use as the spacing for the crosshatch.
|
void |
setLineWidth(float lineWidth)
A relative width for the crosshatch lines.
|
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 CROSSHATCH_FRAGMENT_SHADER
public GPUImageCrosshatchFilter()
public GPUImageCrosshatchFilter(float crossHatchSpacing,
float lineWidth)
public void onInit()
onInit in class GPUImageFilterpublic void onInitialized()
onInitialized in class GPUImageFilterpublic void setCrossHatchSpacing(float crossHatchSpacing)
crossHatchSpacing - default 0.03public void setLineWidth(float lineWidth)
lineWidth - default 0.003