Code coverage report for src/pixi/filters/AbstractFilter.js

Statements: 14.29% (1 / 7)      Branches: 0% (0 / 4)      Functions: 0% (0 / 1)      Lines: 14.29% (1 / 7)     

All files » src/pixi/filters\ » AbstractFilter.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37                        1                                                
/**
 * @author Mat Groves http://matgroves.com/ @Doormat23
 */
 
/**
 * This is the base class for  creating a pixi.js filter. Currently only webGL supports filters.
 * If you want to make a custom filter this should be your base class.
 * @class AbstractFilter
 * @constructor
 * @param fragmentSrc
 * @param uniforms
 */
PIXI.AbstractFilter = function(fragmentSrc, uniforms)
{
    /**
    * An array of passes - some filters contain a few steps this array simply stores the steps in a liniear fashion.
    * For example the blur filter has two passes blurX and blurY.
    * @property passes
    * @type Array an array of filter objects
    * @private
    */
    this.passes = [this];
 
    this.shaders = [];
    
    this.dirty = true;
    this.padding = 0;
 
    /**
    @property uniforms
    @private
    */
    this.uniforms = uniforms || {};
 
    this.fragmentSrc = fragmentSrc || [];
};