Package 

Class SimpleFilter

  • All Implemented Interfaces:
    com.otaliastudios.cameraview.filter.Filter

    
    public final class SimpleFilter
    extends BaseFilter
                        

    The simplest possible filter that accepts a fragment shader in its constructor. This can be used when your fragment shader is static and has no 'runtime' parameters that influence its behavior. The given fragment shader should respect the default variable names, as listed in the BaseFilter class. NOTE: SimpleFilter is not meant to be subclassed! Subclassing it would require you to override onCopy, which would make this class useless. Instead, you can extend BaseFilter directly.

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleFilter(String fragmentShader) Creates a new filter with the given fragment shader.
    • Method Summary

      Modifier and Type Method Description
      String getFragmentShader() Returns a String containing the fragment shader.
      • Methods inherited from class com.otaliastudios.cameraview.filter.BaseFilter

        copy, draw, getVertexShader, onCreate, onDestroy, setSize
      • Methods inherited from class com.otaliastudios.cameraview.filter.Filter

        copy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleFilter

        SimpleFilter(String fragmentShader)
        Creates a new filter with the given fragment shader.
        Parameters:
        fragmentShader - a fragment shader