{"class":{"name":"Phaser.Filter","extends":"","static":false,"constructor":true,"parameters":[{"name":"game","type":["Phaser.Game"],"help":"A reference to the currently running game.","optional":false,"default":null},{"name":"uniforms","type":["object"],"help":"Uniform mappings object","optional":false,"default":null},{"name":"fragmentSrc","type":["array"],"help":"The fragment shader code.","optional":false,"default":null}],"help":"This is a base Filter class to use for any Phaser filter development."},"consts":[],"methods":{"public":[{"name":"destroy","static":false,"returns":null,"help":"Clear down this Filter and null out references","line":150,"public":true,"protected":false,"private":false,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"init","static":false,"returns":null,"help":"Should be over-ridden.","line":105,"public":true,"protected":false,"private":false,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"setResolution","static":false,"returns":null,"help":"Set the resolution uniforms on the filter.","line":115,"public":true,"protected":false,"private":false,"parameters":[{"name":"width","type":["number"],"help":"The width of the display.","optional":false,"default":null},{"name":"height","type":["number"],"help":"The height of the display.","optional":false,"default":null}],"inherited":false,"inheritedFrom":""},{"name":"update","static":false,"returns":null,"help":"Updates the filter.","line":127,"public":true,"protected":false,"private":false,"parameters":[{"name":"pointer","type":["Phaser.Pointer"],"help":"A Pointer object to use for the filter. The coordinates are mapped to the mouse uniform.","optional":true,"default":null}],"inherited":false,"inheritedFrom":""}],"protected":[],"private":[],"static":[]},"properties":{"public":[{"name":"dirty","type":["boolean"],"help":"","inlineHelp":"Internal PIXI var.","line":47,"default":"true","public":true,"protected":false,"private":false,"readOnly":false},{"name":"fragmentSrc","type":["array"],"help":"","inlineHelp":"The fragment shader code.","line":95,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"game","type":["Phaser.Game"],"help":"","inlineHelp":"A reference to the currently running game.","line":21,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"height","type":["number"],"help":"","inlineHelp":"The height (resolution uniform)","line":180,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"padding","type":["number"],"help":"","inlineHelp":"Internal PIXI var.","line":53,"default":"0","public":true,"protected":false,"private":false,"readOnly":false},{"name":"prevPoint","type":["Phaser.Point"],"help":"","inlineHelp":"The previous position of the pointer (we don't update the uniform if the same)","line":58,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"type","type":["number"],"help":"","inlineHelp":"The const type of this object, either Phaser.WEBGL_FILTER or Phaser.CANVAS_FILTER.","line":27,"default":"Phaser.WEBGL_FILTER","public":true,"protected":false,"private":false,"readOnly":false},{"name":"uniforms","type":["object"],"help":"","inlineHelp":"Default uniform mappings. Compatible with ShaderToy and GLSLSandbox.","line":69,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"width","type":["number"],"help":"","inlineHelp":"The width (resolution uniform)","line":164,"default":null,"public":true,"protected":false,"private":false,"readOnly":false}],"protected":[],"private":[{"name":"passes","type":["array"],"help":"An array of passes - some filters contain a few steps this array simply stores the steps in a linear fashion.\\nFor example the blur filter has two passes blurX and blurY.","inlineHelp":"An array of filter objects.","line":35,"default":null,"public":false,"protected":false,"private":true,"readOnly":false},{"name":"shaders","type":["array"],"help":"","inlineHelp":"Array an array of shaders.","line":41,"default":null,"public":false,"protected":false,"private":true,"readOnly":false}]}}