diff --git a/src/pixi/filters/AbstractFilter.js b/src/pixi/filters/AbstractFilter.js index 596bfab..0d5c16d 100644 --- a/src/pixi/filters/AbstractFilter.js +++ b/src/pixi/filters/AbstractFilter.js @@ -3,12 +3,12 @@ */ /** - * This is the base class for creating a pixi.js filter. Currently only webGL supports filters. + * This is the base class for creating a PIXI 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 + * @param fragmentSrc {Array} The fragment source in an array of strings. + * @param uniforms {Object} An object containing the uniforms for this filter. */ PIXI.AbstractFilter = function(fragmentSrc, uniforms) { @@ -28,7 +28,16 @@ */ this.shaders = []; + /** + * @property dirty + * @type Boolean + */ this.dirty = true; + + /** + * @property padding + * @type Number + */ this.padding = 0; /** @@ -37,6 +46,7 @@ * @private */ this.uniforms = uniforms || {}; + /** * @property fragmentSrc * @type Array @@ -45,6 +55,13 @@ this.fragmentSrc = fragmentSrc || []; }; +PIXI.AbstractFilter.prototype.constructor = PIXI.AbstractFilter; + +/** + * Syncs the uniforms between the class object and the shaders. + * + * @method syncUniforms + */ PIXI.AbstractFilter.prototype.syncUniforms = function() { for(var i=0,j=this.shaders.length; i