2016-12-05 10:06:09 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< title > Phaser Source: docs/pixi-jsdoc.js< / title >
<!-- [if lt IE 9]>
< script src = "//html5shiv.googlecode.com/svn/trunk/html5.js" > < / script >
<![endif]-->
< link type = "text/css" rel = "stylesheet" href = "styles/default.css" >
< link type = "text/css" rel = "stylesheet" href = "styles/sunlight.default.css" >
< link type = "text/css" rel = "stylesheet" href = "styles/site.cerulean.css" >
< / head >
< body >
< div class = "container-fluid" >
< div class = "navbar navbar-fixed-top navbar-inverse" >
< div style = "position: absolute; width: 143px; height: 31px; right: 10px; top: 10px; z-index: 1050" > < a href = "http://phaser.io" > < img src = "img/phaser.png" border = "0" / > < / a > < / div >
< div class = "navbar-inner" >
< a class = "brand" href = "index.html" > Phaser API< / a >
< ul class = "nav" >
< li class = "dropdown" >
< a href = "namespaces.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Namespaces< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-0" >
< a href = "Phaser.html" > Phaser< / a >
< / li >
< li class = "class-depth-0" >
< a href = "PIXI.html" > PIXI< / a >
< / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "classes.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Classes< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-0" >
< a href = "EarCut.html" > EarCut< / a >
< / li >
< li class = "class-depth-0" >
< a href = "Event.html" > Event< / a >
< / li >
< li class = "class-depth-0" >
< a href = "EventTarget.html" > EventTarget< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Animation.html" > Animation< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.AnimationManager.html" > AnimationManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.AnimationParser.html" > AnimationParser< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.ArraySet.html" > ArraySet< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.ArrayUtils.html" > ArrayUtils< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.AudioSprite.html" > AudioSprite< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.BitmapData.html" > BitmapData< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.BitmapText.html" > BitmapText< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Bullet.html" > Bullet< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Button.html" > Button< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Cache.html" > Cache< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Camera.html" > Camera< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Canvas.html" > Canvas< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.CanvasPool.html" > CanvasPool< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Circle.html" > Circle< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Color.html" > Color< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Angle.html" > Angle< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Animation.html" > Animation< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.AutoCull.html" > AutoCull< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Bounds.html" > Bounds< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.BringToTop.html" > BringToTop< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Core.html" > Core< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Crop.html" > Crop< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Delta.html" > Delta< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Destroy.html" > Destroy< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.FixedToCamera.html" > FixedToCamera< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Health.html" > Health< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.InCamera.html" > InCamera< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.InputEnabled.html" > InputEnabled< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.InWorld.html" > InWorld< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.LifeSpan.html" > LifeSpan< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.LoadTexture.html" > LoadTexture< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Overlap.html" > Overlap< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.PhysicsBody.html" > PhysicsBody< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Reset.html" > Reset< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.ScaleMinMax.html" > ScaleMinMax< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Smoothed.html" > Smoothed< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Create.html" > Create< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Creature.html" > Creature< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Device.html" > Device< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.DeviceButton.html" > DeviceButton< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.DOM.html" > DOM< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Easing.html" > Easing< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Back.html" > Back< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Bounce.html" > Bounce< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Circular.html" > Circular< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Cubic.html" > Cubic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Elastic.html" > Elastic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Exponential.html" > Exponential< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Linear.html" > Linear< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Quadratic.html" > Quadratic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Quartic.html" > Quartic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Quintic.html" > Quintic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Sinusoidal.html" > Sinusoidal< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Ellipse.html" > Ellipse< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Events.html" > Events< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Filter.html" > Filter< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.FlexGrid.html" > FlexGrid< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.FlexLayer.html" > FlexLayer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Frame.html" > Frame< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.FrameData.html" > FrameData< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Game.html" > Game< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.GameObjectCreator.html" > GameObjectCreator< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.GameObjectFactory.html" > GameObjectFactory< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Gamepad.html" > Gamepad< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Graphics.html" > Graphics< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Group.html" > Group< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Hermite.html" > Hermite< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Image.html" > Image< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.ImageCollection.html" > ImageCollection< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Input.html" > Input< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.InputHandler.html" > InputHandler< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Key.html" > Key< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Keyboard.html" > Keyboard< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.KeyCode.html" > KeyCode< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Line.html" > Line< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.LinkedList.html" > LinkedList< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Loader.html" > Loader< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.LoaderParser.html" > LoaderParser< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Math.html" > Math< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Matrix.html" > Matrix< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Mouse.html" > Mouse< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.MSPointer.html" > MSPointer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Net.html" > Net< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Particle.html" > Particle< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Particles.html" > Particles< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Particles.Arcade.html" > Arcade< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Particles.Arcade.Emitter.html" > Emitter< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Path.html" > Path< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.PathFollower.html" > PathFollower< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.PathPoint.html" > PathPoint< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Physics.html" > Physics< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Physics.Arcade.html" > Arcade< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.Arcade.Body.html" > Body< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.Arcade.TilemapCollision.html" > TilemapCollision< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Physics.Ninja.html" > Ninja< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.Ninja.AABB.html" > AABB< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.Ninja.Body.html" > Body< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.Ninja.Circle.html" > Circle< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.Ninja.Tile.html" > Tile< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Physics.P2.html" > P2< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.Body.html" > Body< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.BodyDebug.html" > BodyDebug< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.CollisionGroup.html" > CollisionGroup< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.ContactMaterial.html" > ContactMaterial< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.DistanceConstraint.html" > DistanceConstraint< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.FixtureList.html" > FixtureList< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.GearConstraint.html" > GearConstraint< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.InversePointProxy.html" > InversePointProxy< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.LockConstraint.html" > LockConstraint< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.Material.html" > Material< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.PointProxy.html" > PointProxy< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.PrismaticConstraint.html" > PrismaticConstraint< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.RevoluteConstraint.html" > RevoluteConstraint< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.RotationalSpring.html" > RotationalSpring< / a >
< / li >
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.Spring.html" > Spring< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Plugin.html" > Plugin< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Plugin.PathManager.html" > PathManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.PluginManager.html" > PluginManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Point.html" > Point< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Pointer.html" > Pointer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.PointerMode.html" > PointerMode< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Polygon.html" > Polygon< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.QuadTree.html" > QuadTree< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.RandomDataGenerator.html" > RandomDataGenerator< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Rectangle.html" > Rectangle< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.RenderTexture.html" > RenderTexture< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.RequestAnimationFrame.html" > RequestAnimationFrame< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.RetroFont.html" > RetroFont< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Rope.html" > Rope< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.RoundedRectangle.html" > RoundedRectangle< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.ScaleManager.html" > ScaleManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Signal.html" > Signal< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.SignalBinding.html" > SignalBinding< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.SinglePad.html" > SinglePad< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Sound.html" > Sound< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.SoundManager.html" > SoundManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Sprite.html" > Sprite< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.SpriteBatch.html" > SpriteBatch< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Stage.html" > Stage< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.State.html" > State< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.StateManager.html" > StateManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Text.html" > Text< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Tile.html" > Tile< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Tilemap.html" > Tilemap< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.TilemapLayer.html" > TilemapLayer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.TilemapParser.html" > TilemapParser< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Tileset.html" > Tileset< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.TileSprite.html" > TileSprite< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Time.html" > Time< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Timer.html" > Timer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.TimerEvent.html" > TimerEvent< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Touch.html" > Touch< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Tween.html" > Tween< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.TweenData.html" > TweenData< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.TweenManager.html" > TweenManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Utils.html" > Utils< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Utils.Debug.html" > Debug< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Video.html" > Video< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.Weapon.html" > Weapon< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.World.html" > World< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.BaseTexture.html" > BaseTexture< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasBuffer.html" > CanvasBuffer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasGraphics.html" > CanvasGraphics< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasMaskManager.html" > CanvasMaskManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasRenderer.html" > CanvasRenderer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasTinter.html" > CanvasTinter< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.ComplexPrimitiveShader.html" > ComplexPrimitiveShader< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.DisplayObject.html" > DisplayObject< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.DisplayObjectContainer.html" > DisplayObjectContainer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.FilterTexture.html" > FilterTexture< / a >
< / li >
< li class = "class-depth-2" >
< a href = "PIXI.Phaser.GraphicsData.html" > Phaser.GraphicsData< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.PIXI.html" > PIXI< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.PixiFastShader.html" > PixiFastShader< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.PixiShader.html" > PixiShader< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.PrimitiveShader.html" > PrimitiveShader< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.Sprite.html" > Sprite< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.StripShader.html" > StripShader< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.Texture.html" > Texture< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.WebGLBlendModeManager.html" > WebGLBlendModeManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.WebGLFastSpriteBatch.html" > WebGLFastSpriteBatch< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.WebGLFilterManager.html" > WebGLFilterManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.WebGLRenderer.html" > WebGLRenderer< / a >
< / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "global.html" class = "dropdown-toggle" data-toggle = "dropdown" > Global< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-0" >
< a href = "global.html#ANGLE_DOWN" > ANGLE_DOWN< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#ANGLE_LEFT" > ANGLE_LEFT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#ANGLE_NORTH_EAST" > ANGLE_NORTH_EAST< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#ANGLE_NORTH_WEST" > ANGLE_NORTH_WEST< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#ANGLE_RIGHT" > ANGLE_RIGHT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#ANGLE_SOUTH_EAST" > ANGLE_SOUTH_EAST< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#ANGLE_SOUTH_WEST" > ANGLE_SOUTH_WEST< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#ANGLE_UP" > ANGLE_UP< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#arc" > arc< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#AUTO" > AUTO< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#beginFill" > beginFill< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#bezierCurveTo" > bezierCurveTo< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#BITMAPDATA" > BITMAPDATA< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#BITMAPTEXT" > BITMAPTEXT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#blendModes" > blendModes< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#BOTTOM_CENTER" > BOTTOM_CENTER< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#BOTTOM_LEFT" > BOTTOM_LEFT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#BOTTOM_RIGHT" > BOTTOM_RIGHT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#BUTTON" > BUTTON< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#CANVAS" > CANVAS< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#CANVAS_FILTER" > CANVAS_FILTER< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#CENTER" > CENTER< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#CIRCLE" > CIRCLE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#clear" > clear< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#CREATURE" > CREATURE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#destroyCachedSprite" > destroyCachedSprite< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#displayList" > displayList< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#DOWN" > DOWN< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#drawCircle" > drawCircle< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#drawEllipse" > drawEllipse< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#drawPolygon" > drawPolygon< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#drawRect" > drawRect< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#drawRoundedRect" > drawRoundedRect< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#drawShape" > drawShape< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#ELLIPSE" > ELLIPSE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#emit" > emit< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#EMITTER" > EMITTER< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#endFill" > endFill< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#GAMES" > GAMES< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#generateTexture" > generateTexture< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#getBounds" > getBounds< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#getLocalBounds" > getLocalBounds< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#GRAPHICS" > GRAPHICS< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#GROUP" > GROUP< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#HEADLESS" > HEADLESS< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#HORIZONTAL" > HORIZONTAL< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#IMAGE" > IMAGE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#LANDSCAPE" > LANDSCAPE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#LEFT" > LEFT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#LEFT_BOTTOM" > LEFT_BOTTOM< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#LEFT_CENTER" > LEFT_CENTER< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#LEFT_TOP" > LEFT_TOP< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#LINE" > LINE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#lineStyle" > lineStyle< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#lineTo" > lineTo< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#listeners" > listeners< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#MATRIX" > MATRIX< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#mixin" > mixin< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#moveTo" > moveTo< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#NONE" > NONE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#off" > off< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#on" > on< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#once" > once< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#PENDING_ATLAS" > PENDING_ATLAS< / a >
< / li >
< li class = "class-depth-2" >
< a href = "global.html#Phaser.Path#numPointsreturn%257Bnumber%257DThetotalnumberofPathPointsinthisPath." > Phaser.Path#numPoints
return {number} The total number of PathPoints in this Path.< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#POINT" > POINT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#POINTER" > POINTER< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#POLYGON" > POLYGON< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#PORTRAIT" > PORTRAIT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#quadraticCurveTo" > quadraticCurveTo< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#RECTANGLE" > RECTANGLE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#removeAllListeners" > removeAllListeners< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#RENDERTEXTURE" > RENDERTEXTURE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#RETROFONT" > RETROFONT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#RIGHT" > RIGHT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#RIGHT_BOTTOM" > RIGHT_BOTTOM< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#RIGHT_CENTER" > RIGHT_CENTER< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#RIGHT_TOP" > RIGHT_TOP< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#ROPE" > ROPE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#ROUNDEDRECTANGLE" > ROUNDEDRECTANGLE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#scaleModes" > scaleModes< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#SPRITE" > SPRITE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#SPRITEBATCH" > SPRITEBATCH< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#stopImmediatePropagation" > stopImmediatePropagation< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#stopPropagation" > stopPropagation< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#TEXT" > TEXT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#TILEMAP" > TILEMAP< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#TILEMAPLAYER" > TILEMAPLAYER< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#TILESPRITE" > TILESPRITE< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#TOP_CENTER" > TOP_CENTER< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#TOP_LEFT" > TOP_LEFT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#TOP_RIGHT" > TOP_RIGHT< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#UP" > UP< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#updateLocalBounds" > updateLocalBounds< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#VERSION" > VERSION< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#VERTICAL" > VERTICAL< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#VIDEO" > VIDEO< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#WEBGL" > WEBGL< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#WEBGL_FILTER" > WEBGL_FILTER< / a >
< / li >
< li class = "class-depth-0" >
< a href = "global.html#WEBGL_MULTI" > WEBGL_MULTI< / a >
< / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Core< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.Game.html" > Game< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Group.html" > Group< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.World.html" > World< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Loader.html" > Loader< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Cache.html" > Cache< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Time.html" > Time< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Camera.html" > Camera< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.StateManager.html" > State Manager< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.TweenManager.html" > Tween Manager< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.SoundManager.html" > Sound Manager< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Input.html" > Input Manager< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.ScaleManager.html" > Scale Manager< / a > < / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Game Objects< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.GameObjectFactory.html" > Factory (game.add)< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.GameObjectCreator.html" > Creator (game.make)< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Sprite.html" > Sprite< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Image.html" > Image< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Sound.html" > Sound< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Video.html" > Video< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Particles.Arcade.Emitter.html" > Particle Emitter< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Particle.html" > Particle< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Text.html" > Text< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Tween.html" > Tween< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.BitmapText.html" > BitmapText< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Tilemap.html" > Tilemap< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.BitmapData.html" > BitmapData< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.RetroFont.html" > RetroFont< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Button.html" > Button< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Animation.html" > Animation< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Graphics.html" > Graphics< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.RenderTexture.html" > RenderTexture< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.TileSprite.html" > TileSprite< / a > < / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Geometry< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.Circle.html" > Circle< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Ellipse.html" > Ellipse< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Line.html" > Line< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Matrix.html" > Matrix< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Point.html" > Point< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Polygon.html" > Polygon< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Rectangle.html" > Rectangle< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.RoundedRectangle.html" > Rounded Rectangle< / a > < / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Physics< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.Physics.Arcade.html" > Arcade Physics< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.Arcade.Body.html" > Body< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Weapon.html" > Weapon< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Physics.P2.html" > P2 Physics< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.Body.html" > Body< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.Spring.html" > Spring< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.CollisionGroup.html" > CollisionGroup< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.ContactMaterial.html" > ContactMaterial< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Physics.Ninja.html" > Ninja Physics< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.Body.html" > Body< / a > < / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Input< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.InputHandler.html" > Input Handler< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Pointer.html" > Pointer< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.DeviceButton.html" > Device Button< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Mouse.html" > Mouse< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Keyboard.html" > Keyboard< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Key.html" > Key< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.KeyCode.html" > Key Codes< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Gamepad.html" > Gamepad< / a > < / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Community< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "http://phaser.io" > Phaser Web Site< / a > < / li >
< li class = "class-depth-1" > < a href = "https://github.com/photonstorm/phaser" > Phaser Github< / a > < / li >
< li class = "class-depth-1" > < a href = "http://phaser.io/examples" > Phaser Examples< / a > < / li >
< li class = "class-depth-1" > < a href = "https://github.com/photonstorm/phaser-plugins" > Phaser Plugins< / a > < / li >
< li class = "class-depth-1" > < a href = "http://www.html5gamedevs.com/forum/14-phaser/" > Forum< / a > < / li >
< li class = "class-depth-1" > < a href = "http://stackoverflow.com/questions/tagged/phaser-framework" > Stack Overflow< / a > < / li >
< li class = "class-depth-1" > < a href = "http://phaser.io/learn" > Tutorials< / a > < / li >
< li class = "class-depth-1" > < a href = "http://phaser.io/community/newsletter" > Newsletter< / a > < / li >
< li class = "class-depth-1" > < a href = "http://phaser.io/community/twitter" > Twitter< / a > < / li >
< li class = "class-depth-1" > < a href = "http://phaser.io/community/slack" > Slack< / a > < / li >
< li class = "class-depth-1" > < a href = "http://phaser.io/community/donate" > Donate< / a > < / li >
< li class = "class-depth-1" > < a href = "https://www.codeandweb.com/texturepacker/phaser" > Texture Packer< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
< / div >
< div class = "row-fluid" >
< div class = "span12" >
< div id = "main" >
< h1 class = "page-title" > Source: docs/pixi-jsdoc.js< / h1 >
< section >
< article >
2014-11-15 20:01:46 +00:00
< pre class = "sunlight-highlight-javascript linenums" > /**
* @namespace PIXI
*/
/**
* @fileoverview
2016-07-01 15:57:13 +00:00
* @author Richard Davey < rich@photonstorm.com>
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
2016-12-05 10:06:09 +00:00
* @class PIXI.DisplayObject
2016-07-01 15:57:13 +00:00
* @description The base class for all objects that are rendered. Contains properties for position, scaling,
rotation, masks and cache handling.
This is an abstract class and should not be used on its own, rather it should be extended.
It is used internally by the likes of PIXI.Sprite.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-07-01 15:57:13 +00:00
* @sourceline 7
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The coordinates, in pixels, of this DisplayObject, relative to its parent container.
The value of this property does not reflect any positioning happening further up the display list.
To obtain that value please see the `worldPosition` property.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#position
2016-07-01 15:57:13 +00:00
* @type {PIXIPoint}
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-07-01 15:57:13 +00:00
* @sourceline 20
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The scale of this DisplayObject. A scale of 1:1 represents the DisplayObject
at its default size. A value of 0.5 would scale this DisplayObject by half, and so on.
The value of this property does not reflect any scaling happening further up the display list.
To obtain that value please see the `worldScale` property.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#scale
2016-07-01 15:57:13 +00:00
* @type {PIXIPoint}
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-07-01 15:57:13 +00:00
* @sourceline 31
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The pivot point of this DisplayObject that it rotates around. The values are expressed
in pixel values.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#pivot
2016-07-01 15:57:13 +00:00
* @type {PIXIPoint}
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-07-01 15:57:13 +00:00
* @sourceline 43
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The rotation of this DisplayObject. The value is given, and expressed, in radians, and is based on
a right-handed orientation.
The value of this property does not reflect any rotation happening further up the display list.
To obtain that value please see the `worldRotation` property.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#rotation
2014-11-15 20:01:46 +00:00
* @type {Number}
2016-07-01 15:57:13 +00:00
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-07-01 15:57:13 +00:00
* @sourceline 51
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The alpha value of this DisplayObject. A value of 1 is fully opaque. A value of 0 is transparent.
Please note that an object with an alpha value of 0 is skipped during the render pass.
The value of this property does not reflect any alpha values set further up the display list.
To obtain that value please see the `worldAlpha` property.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#alpha
2014-11-15 20:01:46 +00:00
* @type {Number}
2016-07-01 15:57:13 +00:00
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-07-01 15:57:13 +00:00
* @sourceline 63
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The visibility of this DisplayObject. A value of `false` makes the object invisible.
A value of `true` makes it visible. Please note that an object with a visible value of
`false` is skipped during the render pass. Equally a DisplayObject with visible false will
not render any of its children.
The value of this property does not reflect any visible values set further up the display list.
To obtain that value please see the `worldVisible` property.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#visible
2014-11-15 20:01:46 +00:00
* @type {Boolean}
2016-07-01 15:57:13 +00:00
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-07-01 15:57:13 +00:00
* @sourceline 75
2014-11-15 20:01:46 +00:00
*/
/**
* @description This is the defined area that will pick up mouse / touch events. It is null by default.
Setting it is a neat way of optimising the hitTest function that the interactionManager will use (as it will not need to hit test all the children)
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#hitArea
2015-03-23 23:46:30 +00:00
* @type {(Rectangle|Circle|Ellipse|Polygon)}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-07-01 15:57:13 +00:00
* @sourceline 89
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description Should this DisplayObject be rendered by the renderer? An object with a renderable value of
`false` is skipped during the render pass.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#renderable
2014-11-15 20:01:46 +00:00
* @type {Boolean}
2016-07-01 15:57:13 +00:00
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-07-01 15:57:13 +00:00
* @sourceline 98
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The parent DisplayObjectContainer that this DisplayObject is a child of.
All DisplayObjects must belong to a parent in order to be rendered.
The root parent is the Stage object. This property is set automatically when the
DisplayObject is added to, or removed from, a DisplayObjectContainer.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#parent
2016-07-01 15:57:13 +00:00
* @type {PIXIDisplayObjectContainer}
2014-11-15 20:01:46 +00:00
* @readonly
2016-07-01 15:57:13 +00:00
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-07-01 15:57:13 +00:00
* @sourceline 107
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The multiplied alpha value of this DisplayObject. A value of 1 is fully opaque. A value of 0 is transparent.
This value is the calculated total, based on the alpha values of all parents of this DisplayObjects
in the display list.
To obtain, and set, the local alpha value, see the `alpha` property.
Note: This property is only updated at the end of the `updateTransform` call, once per render. Until
that happens this property will contain values based on the previous frame. Be mindful of this if
accessing this property outside of the normal game flow, i.e. from an asynchronous event callback.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#worldAlpha
2014-11-15 20:01:46 +00:00
* @type {Number}
* @readonly
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 119
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The current transform of this DisplayObject.
This property contains the calculated total, based on the transforms of all parents of this
DisplayObject in the display list.
Note: This property is only updated at the end of the `updateTransform` call, once per render. Until
that happens this property will contain values based on the previous frame. Be mindful of this if
accessing this property outside of the normal game flow, i.e. from an asynchronous event callback.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#worldTransform
2016-07-01 15:57:13 +00:00
* @type {PIXIMatrix}
2014-11-15 20:01:46 +00:00
* @readonly
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 135
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The coordinates, in pixels, of this DisplayObject within the world.
This property contains the calculated total, based on the positions of all parents of this
DisplayObject in the display list.
Note: This property is only updated at the end of the `updateTransform` call, once per render. Until
that happens this property will contain values based on the previous frame. Be mindful of this if
accessing this property outside of the normal game flow, i.e. from an asynchronous event callback.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#worldPosition
2016-07-01 15:57:13 +00:00
* @type {PIXIPoint}
2015-07-22 14:31:30 +00:00
* @readonly
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 150
2015-07-22 14:31:30 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The global scale of this DisplayObject.
This property contains the calculated total, based on the scales of all parents of this
DisplayObject in the display list.
Note: This property is only updated at the end of the `updateTransform` call, once per render. Until
that happens this property will contain values based on the previous frame. Be mindful of this if
accessing this property outside of the normal game flow, i.e. from an asynchronous event callback.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#worldScale
2016-07-01 15:57:13 +00:00
* @type {PIXIPoint}
2015-07-22 14:31:30 +00:00
* @readonly
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 165
2015-07-22 14:31:30 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The rotation, in radians, of this DisplayObject.
This property contains the calculated total, based on the rotations of all parents of this
DisplayObject in the display list.
Note: This property is only updated at the end of the `updateTransform` call, once per render. Until
that happens this property will contain values based on the previous frame. Be mindful of this if
accessing this property outside of the normal game flow, i.e. from an asynchronous event callback.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#worldRotation
2015-07-22 14:31:30 +00:00
* @type {Number}
* @readonly
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 180
2015-07-22 14:31:30 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The rectangular area used by filters when rendering a shader for this DisplayObject.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#filterArea
2016-07-01 15:57:13 +00:00
* @type {Rectangle}
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 195
2014-11-15 20:01:46 +00:00
*/
/**
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#_sr - Cached rotation value.
2014-11-15 20:01:46 +00:00
* @type {Number}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 204
2014-11-15 20:01:46 +00:00
*/
/**
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#_cr - Cached rotation value.
2016-07-01 15:57:13 +00:00
* @type {Number}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 210
2014-11-15 20:01:46 +00:00
*/
/**
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#_bounds - The cached bounds of this object.
2016-07-01 15:57:13 +00:00
* @type {PIXIRectangle}
2014-11-15 20:01:46 +00:00
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 216
2014-11-15 20:01:46 +00:00
*/
/**
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#_currentBounds - The most recently calculated bounds of this object.
2016-07-01 15:57:13 +00:00
* @type {PIXIRectangle}
2014-11-15 20:01:46 +00:00
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 222
2014-11-15 20:01:46 +00:00
*/
/**
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#_mask - The cached mask of this object.
2016-07-01 15:57:13 +00:00
* @type {PIXIRectangle}
2014-11-15 20:01:46 +00:00
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 228
2014-11-15 20:01:46 +00:00
*/
/**
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#_cacheAsBitmap - Internal cache as bitmap flag.
2014-11-15 20:01:46 +00:00
* @type {Boolean}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 234
2014-11-15 20:01:46 +00:00
*/
/**
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#_cacheIsDirty - Internal dirty cache flag.
2014-11-15 20:01:46 +00:00
* @type {Boolean}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 240
2014-11-15 20:01:46 +00:00
*/
/**
2015-03-23 23:46:30 +00:00
* @description Destroy this DisplayObject.
2015-08-24 14:43:45 +00:00
2016-08-26 00:18:47 +00:00
Removes any cached sprites, sets renderable flag to false, and nulls filters, bounds and mask.
2015-08-24 14:43:45 +00:00
2016-07-01 15:57:13 +00:00
Also iteratively calls `destroy` on any children.
2016-12-05 10:06:09 +00:00
* @method PIXI.DisplayObject#PIXI.DisplayObject#destroy
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 252
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description To be overridden by classes that require it.
2016-12-05 10:06:09 +00:00
* @method PIXI.DisplayObject#PIXI.DisplayObject#preUpdate
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 403
2015-03-23 23:46:30 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description Generates a RenderTexture based on this DisplayObject, which can they be used to texture other Sprites.
This can be useful if your DisplayObject is static, or complicated, and needs to be reused multiple times.
Please note that no garbage collection takes place on old textures. It is up to you to destroy old textures,
and references to them, so they don't linger in memory.
2016-12-05 10:06:09 +00:00
* @method PIXI.DisplayObject#PIXI.DisplayObject#generateTexture
2016-07-01 15:57:13 +00:00
* @param {Number} [resolution=1] - - The resolution of the texture being generated.
* @param {Number} [scaleMode=PIXI.scaleModes.DEFAULT] - - See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values.
* @param {(PIXICanvasRenderer|PIXIWebGLRenderer)} renderer - - The renderer used to generate the texture.
2016-11-23 00:59:32 +00:00
* @return {PhaserRenderTexture} - A RenderTexture containing an image of this DisplayObject at the time it was invoked.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 412
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description If this DisplayObject has a cached Sprite, this method generates and updates it.
2016-12-05 10:06:09 +00:00
* @method PIXI.DisplayObject#PIXI.DisplayObject#updateCache
2016-07-01 15:57:13 +00:00
* @return {PIXIDisplayObject} - A reference to this DisplayObject.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 440
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description Calculates the global position of this DisplayObject, based on the position given.
2016-12-05 10:06:09 +00:00
* @method PIXI.DisplayObject#PIXI.DisplayObject#toGlobal
2016-07-01 15:57:13 +00:00
* @param {PIXIPoint} position - - The global position to calculate from.
* @return {PIXIPoint} - A point object representing the position of this DisplayObject based on the global position given.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 454
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description Calculates the local position of this DisplayObject, relative to another point.
2016-12-05 10:06:09 +00:00
* @method PIXI.DisplayObject#PIXI.DisplayObject#toLocal
2016-07-01 15:57:13 +00:00
* @param {PIXIPoint} position - - The world origin to calculate from.
* @param {PIXIDisplayObject} [from] - - An optional DisplayObject to calculate the global position from.
* @return {PIXIPoint} - A point object representing the position of this DisplayObject based on the global position given.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 469
2014-11-15 20:01:46 +00:00
*/
/**
* @description Internal method.
2016-12-05 10:06:09 +00:00
* @method PIXI.DisplayObject#PIXI.DisplayObject#_renderCachedSprite
2016-07-01 15:57:13 +00:00
* @param {Object} renderSession - - The render session
2014-11-15 20:01:46 +00:00
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 490
2014-11-15 20:01:46 +00:00
*/
/**
* @description Internal method.
2016-12-05 10:06:09 +00:00
* @method PIXI.DisplayObject#PIXI.DisplayObject#_generateCachedSprite
2014-11-15 20:01:46 +00:00
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-08-26 00:18:47 +00:00
* @sourceline 512
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description Destroys a cached Sprite.
2016-12-05 10:06:09 +00:00
* @method PIXI.DisplayObject#PIXI.DisplayObject#_destroyCachedSprite
2014-11-15 20:01:46 +00:00
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-11-23 00:59:32 +00:00
* @sourceline 562
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The horizontal position of the DisplayObject, in pixels, relative to its parent.
If you need the world position of the DisplayObject, use `DisplayObject.worldPosition` instead.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#x - The horizontal position of the DisplayObject, in pixels, relative to its parent.
2016-07-01 15:57:13 +00:00
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-11-23 00:59:32 +00:00
* @sourceline 588
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description The vertical position of the DisplayObject, in pixels, relative to its parent.
If you need the world position of the DisplayObject, use `DisplayObject.worldPosition` instead.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#y - The vertical position of the DisplayObject, in pixels, relative to its parent.
2016-07-01 15:57:13 +00:00
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-11-23 00:59:32 +00:00
* @sourceline 610
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description Indicates if this DisplayObject is visible, based on it, and all of its parents, `visible` property values.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#worldVisible - Indicates if this DisplayObject is visible, based on it, and all of its parents, `visible` property values.
2016-07-01 15:57:13 +00:00
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-11-23 00:59:32 +00:00
* @sourceline 632
2014-11-15 20:01:46 +00:00
*/
/**
2016-07-01 15:57:13 +00:00
* @description Sets a mask for this DisplayObject. A mask is an instance of a Graphics object.
When applied it limits the visible area of this DisplayObject to the shape of the mask.
Under a Canvas renderer it uses shape clipping. Under a WebGL renderer it uses a Stencil Buffer.
To remove a mask, set this property to `null`.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#mask - The mask applied to this DisplayObject. Set to `null` to remove an existing mask.
2016-07-01 15:57:13 +00:00
* @type {PIXIGraphics}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-11-23 00:59:32 +00:00
* @sourceline 675
2016-07-01 15:57:13 +00:00
*/
/**
* @description Sets the filters for this DisplayObject. This is a WebGL only feature, and is ignored by the Canvas
Renderer. A filter is a shader applied to this DisplayObject. You can modify the placement of the filter
using `DisplayObject.filterArea`.
To remove filters, set this property to `null`.
Note: You cannot have a filter set, and a MULTIPLY Blend Mode active, at the same time. Setting a
filter will reset this DisplayObjects blend mode to NORMAL.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#filters - An Array of Phaser.Filter objects, or objects that extend them.
2016-07-01 15:57:13 +00:00
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-11-23 00:59:32 +00:00
* @sourceline 710
2016-07-01 15:57:13 +00:00
*/
/**
* @description Sets if this DisplayObject should be cached as a bitmap.
When invoked it will take a snapshot of the DisplayObject, as it is at that moment, and store it
in a RenderTexture. This is then used whenever this DisplayObject is rendered. It can provide a
performance benefit for complex, but static, DisplayObjects. I.e. those with lots of children.
Cached Bitmaps do not track their parents. If you update a property of this DisplayObject, it will not
re-generate the cached bitmap automatically. To do that you need to call `DisplayObject.updateCache`.
To remove a cached bitmap, set this property to `null`.
2016-12-05 10:06:09 +00:00
* @member PIXI.DisplayObject#cacheAsBitmap - Cache this DisplayObject as a Bitmap. Set to `null` to remove an existing cached bitmap.
2016-07-01 15:57:13 +00:00
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObject.js
2016-11-23 00:59:32 +00:00
* @sourceline 763
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.DisplayObjectContainer
* @description A DisplayObjectContainer represents a collection of display objects.
It is the base class of all display objects that act as a container for other objects.
2016-12-05 10:06:09 +00:00
* @augments PIXI.DisplayObject
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @description [read-only] The array of children of this container.
* @member PIXI.DisplayObjectContainer#children
* @type {Array< DisplayObject>}
* @readonly
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2014-11-15 20:01:46 +00:00
* @sourceline 17
*/
/**
2016-06-09 16:13:31 +00:00
* @description If `ignoreChildInput` is `false` it will allow this objects _children_ to be considered as valid for Input events.
If this property is `true` then the children will _not_ be considered as valid for Input events.
Note that this property isn't recursive: only immediate children are influenced, it doesn't scan further down.
* @member PIXI.DisplayObjectContainer#ignoreChildInput
* @type {Boolean}
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-06-09 16:13:31 +00:00
* @sourceline 26
*/
/**
2014-11-15 20:01:46 +00:00
* @description Adds a child to the container.
* @method PIXI.DisplayObjectContainer#addChild
2016-12-05 10:06:09 +00:00
* @param {PIXI.DisplayObject} child - The DisplayObject to add to the container
* @return {PIXI.DisplayObject} The child that was added.
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 42
2014-11-15 20:01:46 +00:00
*/
/**
* @description Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown
* @method PIXI.DisplayObjectContainer#addChildAt
2016-12-05 10:06:09 +00:00
* @param {PIXI.DisplayObject} child - The child to add
2014-11-15 20:01:46 +00:00
* @param {Number} index - The index to place the child in
2016-12-05 10:06:09 +00:00
* @return {PIXI.DisplayObject} The child that was added.
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 55
2014-11-15 20:01:46 +00:00
*/
/**
* @description Swaps the position of 2 Display Objects within this container.
* @method PIXI.DisplayObjectContainer#swapChildren
2016-12-05 10:06:09 +00:00
* @param {PIXI.DisplayObject} child -
* @param {PIXI.DisplayObject} child2 -
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 85
2014-11-15 20:01:46 +00:00
*/
/**
* @description Returns the index position of a child DisplayObject instance
* @method PIXI.DisplayObjectContainer#getChildIndex
2016-12-05 10:06:09 +00:00
* @param {PIXI.DisplayObject} child - The DisplayObject instance to identify
2014-11-15 20:01:46 +00:00
* @return {Number} The index position of the child display object to identify
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 112
2014-11-15 20:01:46 +00:00
*/
/**
* @description Changes the position of an existing child in the display object container
* @method PIXI.DisplayObjectContainer#setChildIndex
2016-12-05 10:06:09 +00:00
* @param {PIXI.DisplayObject} child - The child DisplayObject instance for which you want to change the index number
2014-11-15 20:01:46 +00:00
* @param {Number} index - The resulting index number for the child display object
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 132
2014-11-15 20:01:46 +00:00
*/
/**
* @description Returns the child at the specified index
* @method PIXI.DisplayObjectContainer#getChildAt
* @param {Number} index - The index to get the child from
2016-12-05 10:06:09 +00:00
* @return {PIXI.DisplayObject} The child at the given index, if any.
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 153
2014-11-15 20:01:46 +00:00
*/
/**
* @description Removes a child from the container.
* @method PIXI.DisplayObjectContainer#removeChild
2016-12-05 10:06:09 +00:00
* @param {PIXI.DisplayObject} child - The DisplayObject to remove
* @return {PIXI.DisplayObject} The child that was removed.
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 171
2014-11-15 20:01:46 +00:00
*/
/**
* @description Removes a child from the specified index position.
* @method PIXI.DisplayObjectContainer#removeChildAt
* @param {Number} index - The index to get the child from
2016-12-05 10:06:09 +00:00
* @return {PIXI.DisplayObject} The child that was removed.
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 191
2014-11-15 20:01:46 +00:00
*/
/**
* @description Removes all children from this container that are within the begin and end indexes.
* @method PIXI.DisplayObjectContainer#removeChildren
* @param {Number} beginIndex - The beginning position. Default value is 0.
* @param {Number} endIndex - The ending position. Default value is size of the container.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 213
2014-11-15 20:01:46 +00:00
*/
/**
2016-08-26 00:18:47 +00:00
* @description Retrieves the global bounds of the displayObjectContainer as a rectangle. The bounds calculation takes all visible children into consideration.
2014-11-15 20:01:46 +00:00
* @method PIXI.DisplayObjectContainer#getBounds
2016-08-26 00:18:47 +00:00
* @param {(PIXIDisplayObject|PIXIMatrix)} [targetCoordinateSpace] - Returns a rectangle that defines the area of the display object relative to the coordinate system of the targetCoordinateSpace object.
2015-03-23 23:46:30 +00:00
* @return {Rectangle} The rectangular bounding area
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 280
2014-11-15 20:01:46 +00:00
*/
/**
2016-08-26 00:18:47 +00:00
* @description Retrieves the non-global local bounds of the displayObjectContainer as a rectangle without any transformations. The calculation takes all visible children into consideration.
2014-11-15 20:01:46 +00:00
* @method PIXI.DisplayObjectContainer#getLocalBounds
2015-03-23 23:46:30 +00:00
* @return {Rectangle} The rectangular bounding area
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 437
2014-11-15 20:01:46 +00:00
*/
/**
2016-08-26 00:18:47 +00:00
* @description Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself.
* @method PIXI.DisplayObjectContainer#contains
2016-12-05 10:06:09 +00:00
* @param {PIXI.DisplayObject} child -
2016-08-26 00:18:47 +00:00
* @return {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 449
2014-11-15 20:01:46 +00:00
*/
/**
* @description Renders the object using the WebGL renderer
* @method PIXI.DisplayObjectContainer#_renderWebGL
* @param {RenderSession} renderSession -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 472
2014-11-15 20:01:46 +00:00
*/
/**
* @description Renders the object using the Canvas renderer
* @method PIXI.DisplayObjectContainer#_renderCanvas
* @param {RenderSession} renderSession -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 534
*/
/**
* @description The width of the displayObjectContainer, setting this will actually modify the scale to achieve the value set
* @member PIXI.DisplayObjectContainer#width
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 571
*/
/**
* @description The height of the displayObjectContainer, setting this will actually modify the scale to achieve the value set
* @member PIXI.DisplayObjectContainer#height
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\DisplayObjectContainer.js
2016-08-26 00:18:47 +00:00
* @sourceline 600
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.Sprite
* @description The Sprite object is the base for all textured objects that are rendered to the screen
* @augments PIXI.DisplayObjectContainer
* @param {PIXI.Texture} texture - The texture for this sprite
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @description The anchor sets the origin point of the texture.
The default is 0,0 this means the texture's origin is the top left
Setting than anchor to 0.5,0.5 means the textures origin is centered
Setting the anchor to 1,1 would mean the textures origin points will be the bottom right corner
* @member PIXI.Sprite#anchor
2015-03-23 23:46:30 +00:00
* @type {Point}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 17
2014-11-15 20:01:46 +00:00
*/
/**
* @description The texture that the sprite is using
* @member PIXI.Sprite#texture
* @type {PIXI.Texture}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 28
2014-11-15 20:01:46 +00:00
*/
/**
* @description The width of the sprite (this is initially set by the texture)
* @member PIXI.Sprite#_width
* @type {Number}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 36
2014-11-15 20:01:46 +00:00
*/
/**
* @description The height of the sprite (this is initially set by the texture)
* @member PIXI.Sprite#_height
* @type {Number}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 45
2014-11-15 20:01:46 +00:00
*/
/**
* @description The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect.
* @member PIXI.Sprite#tint
* @type {Number}
* @default 0xFFFFFF
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 54
2014-11-15 20:01:46 +00:00
*/
/**
2015-07-22 14:31:30 +00:00
* @description The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect.
* @member PIXI.Sprite#cachedTint
* @type {Number}
* @default -1
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 63
2015-07-22 14:31:30 +00:00
*/
/**
* @description A canvas that contains the tinted version of the Sprite (in Canvas mode, WebGL doesn't populate this)
* @member PIXI.Sprite#tintedTexture
* @type {Canvas}
* @default null
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 73
2015-07-22 14:31:30 +00:00
*/
/**
2014-11-15 20:01:46 +00:00
* @description The blend mode to be applied to the sprite. Set to PIXI.blendModes.NORMAL to remove any blend mode.
2015-08-24 14:43:45 +00:00
Warning: You cannot have a blend mode and a filter active on the same Sprite. Doing so will render the sprite invisible.
2014-11-15 20:01:46 +00:00
* @member PIXI.Sprite#blendMode
* @type {Number}
* @default PIXI.blendModes.NORMAL;
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 82
2014-11-15 20:01:46 +00:00
*/
/**
2016-08-26 00:18:47 +00:00
* @description The shader that will be used to render this Sprite.
Set to null to remove a current shader.
2014-11-15 20:01:46 +00:00
* @member PIXI.Sprite#shader
2016-11-23 00:59:32 +00:00
* @type {PhaserFilter}
2014-11-15 20:01:46 +00:00
* @default null
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 93
2014-11-15 20:01:46 +00:00
*/
/**
2016-06-17 00:11:24 +00:00
* @description Controls if this Sprite is processed by the core Phaser game loops and Group loops.
* @member PIXI.Sprite#exists
* @type {Boolean}
* @default true
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 103
2016-06-17 00:11:24 +00:00
*/
/**
2014-11-15 20:01:46 +00:00
* @description The width of the sprite, setting this will actually modify the scale to achieve the value set
* @member PIXI.Sprite#width
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 125
2014-11-15 20:01:46 +00:00
*/
/**
* @description The height of the sprite, setting this will actually modify the scale to achieve the value set
* @member PIXI.Sprite#height
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 144
2014-11-15 20:01:46 +00:00
*/
/**
2015-08-24 14:43:45 +00:00
* @description Sets the texture of the sprite. Be warned that this doesn't remove or destroy the previous
texture this Sprite was using.
2014-11-15 20:01:46 +00:00
* @method PIXI.Sprite#setTexture
* @param {PIXI.Texture} texture - The PIXI texture that is displayed by the sprite
2015-08-24 14:43:45 +00:00
* @param {Boolean} [destroy=false] - Call Texture.destroy on the current texture before replacing it with the new one?
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 163
2014-11-15 20:01:46 +00:00
*/
/**
* @description When the texture is updated, this event will fire to update the scale and frame
* @method PIXI.Sprite#onTextureUpdate
* @param {} event -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 185
2014-11-15 20:01:46 +00:00
*/
/**
2016-05-19 11:36:51 +00:00
* @description Returns the bounds of the Sprite as a rectangle.
The bounds calculation takes the worldTransform into account.
It is important to note that the transform is not updated when you call this method.
So if this Sprite is the child of a Display Object which has had its transform
updated since the last render pass, those changes will not yet have been applied
to this Sprites worldTransform. If you need to ensure that all parent transforms
are factored into this getBounds operation then you should call `updateTransform`
on the root most object in this Sprites display list first.
2014-11-15 20:01:46 +00:00
* @method PIXI.Sprite#getBounds
2015-03-23 23:46:30 +00:00
* @param {Matrix} matrix - the transformation matrix of the sprite
* @return {Rectangle} the framing rectangle
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 199
*/
/**
* @description Retrieves the non-global local bounds of the Sprite as a rectangle. The calculation takes all visible children into consideration.
* @method PIXI.Sprite#getLocalBounds
* @return {Rectangle} The rectangular bounding area
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 315
2014-11-15 20:01:46 +00:00
*/
/**
* @description Renders the object using the WebGL renderer
* @method PIXI.Sprite#_renderWebGL
* @param {RenderSession} renderSession -
2015-07-22 14:31:30 +00:00
* @param {Matrix} [matrix] - - Optional matrix. If provided the Display Object will be rendered using this matrix, otherwise it will use its worldTransform.
2014-11-15 20:01:46 +00:00
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 345
2014-11-15 20:01:46 +00:00
*/
/**
* @description Renders the object using the Canvas renderer
* @method PIXI.Sprite#_renderCanvas
* @param {RenderSession} renderSession -
2015-07-22 14:31:30 +00:00
* @param {Matrix} [matrix] - - Optional matrix. If provided the Display Object will be rendered using this matrix, otherwise it will use its worldTransform.
2014-11-15 20:01:46 +00:00
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\display\Sprite.js
2016-08-26 00:18:47 +00:00
* @sourceline 415
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
2016-11-23 00:59:32 +00:00
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasBuffer.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
2016-11-23 00:59:32 +00:00
* @class PIXI.CanvasBuffer
* @description Creates a Canvas element of the given size.
* @param {Number} width - the width for the newly created canvas
* @param {Number} height - the height for the newly created canvas
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasBuffer.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
2016-11-23 00:59:32 +00:00
* @description The width of the Canvas in pixels.
* @member PIXI.CanvasBuffer#width
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasBuffer.js
2016-11-23 00:59:32 +00:00
* @sourceline 15
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description The height of the Canvas in pixels.
* @member PIXI.CanvasBuffer#height
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasBuffer.js
2016-11-23 00:59:32 +00:00
* @sourceline 23
*/
/**
* @description The Canvas object that belongs to this CanvasBuffer.
* @member PIXI.CanvasBuffer#canvas
* @type {HTMLCanvasElement}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasBuffer.js
2016-11-23 00:59:32 +00:00
* @sourceline 31
*/
/**
* @description A CanvasRenderingContext2D object representing a two-dimensional rendering context.
* @member PIXI.CanvasBuffer#context
* @type {CanvasRenderingContext2D}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasBuffer.js
2016-11-23 00:59:32 +00:00
* @sourceline 39
*/
/**
* @description Clears the canvas that was created by the CanvasBuffer class.
* @method PIXI.CanvasBuffer#clear
2014-11-15 20:01:46 +00:00
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasBuffer.js
2016-11-23 00:59:32 +00:00
* @sourceline 53
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description Resizes the canvas to the specified width and height.
* @method PIXI.CanvasBuffer#resize
* @param {Number} width - the new width of the canvas
* @param {Number} height - the new height of the canvas
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasBuffer.js
2016-11-23 00:59:32 +00:00
* @sourceline 65
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description Frees the canvas up for use again.
* @method PIXI.CanvasBuffer#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasBuffer.js
2016-11-23 00:59:32 +00:00
* @sourceline 78
2014-11-15 20:01:46 +00:00
*/
/**
2015-03-23 23:46:30 +00:00
* @fileoverview
2016-11-23 00:59:32 +00:00
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasMaskManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
2016-11-23 00:59:32 +00:00
* @class PIXI.CanvasMaskManager
* @description A set of functions used to handle masking.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasMaskManager.js
2014-11-25 00:23:44 +00:00
* @sourceline 5
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description This method adds it to the current stack of masks.
* @method PIXI.CanvasMaskManager#pushMask
* @param {Object} maskData - the maskData that will be pushed
* @param {Object} renderSession - The renderSession whose context will be used for this mask manager.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasMaskManager.js
2016-11-23 00:59:32 +00:00
* @sourceline 17
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description Restores the current drawing context to the state it was before the mask was applied.
* @method PIXI.CanvasMaskManager#popMask
* @param {Object} renderSession - The renderSession whose context will be used for this mask manager.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasMaskManager.js
2016-11-23 00:59:32 +00:00
* @sourceline 49
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasTinter.js
2016-11-23 00:59:32 +00:00
* @sourceline 1
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @class PIXI.CanvasTinter
* @description Utility methods for Sprite/Texture tinting.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasTinter.js
2016-11-23 00:59:32 +00:00
* @sourceline 5
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description Basically this method just needs a sprite and a color and tints the sprite with the given color.
* @method PIXI.CanvasTinter.getTintedTexture
* @param {PIXI.Sprite} sprite - the sprite to tint
* @param {Number} color - the color to use to tint the sprite with
* @return {HTMLCanvasElement} The tinted canvas
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasTinter.js
2016-11-23 00:59:32 +00:00
* @sourceline 13
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description Tint a texture using the "multiply" operation.
* @method PIXI.CanvasTinter.tintWithMultiply
* @param {PIXI.Texture} texture - the texture to tint
* @param {Number} color - the color to use to tint the sprite with
* @param {HTMLCanvasElement} canvas - the current canvas
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasTinter.js
2016-11-23 00:59:32 +00:00
* @sourceline 31
2014-11-25 00:23:44 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description Tint a texture pixel per pixel.
* @method PIXI.CanvasTinter.tintPerPixel
* @param {PIXI.Texture} texture - the texture to tint
* @param {Number} color - the color to use to tint the sprite with
* @param {HTMLCanvasElement} canvas - the current canvas
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\utils\CanvasTinter.js
2016-11-23 00:59:32 +00:00
* @sourceline 73
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasGraphics.js
2016-11-23 00:59:32 +00:00
* @sourceline 1
2014-11-25 00:23:44 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @class PIXI.CanvasGraphics
* @description A set of functions used by the canvas renderer to draw the primitive graphics data.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasGraphics.js
2016-11-23 00:59:32 +00:00
* @sourceline 6
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
2016-11-23 00:59:32 +00:00
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
2016-11-23 00:59:32 +00:00
* @class PIXI.CanvasRenderer
* @description The CanvasRenderer draws the Stage and all its content onto a 2d canvas. This renderer should be used for browsers that do not support webGL.
Don't forget to add the CanvasRenderer.view to your DOM or you will not see anything :)
* @param {PhaserGame} game - A reference to the Phaser Game instance
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
2016-11-23 00:59:32 +00:00
* @member PIXI.CanvasRenderer#game - A reference to the Phaser Game instance.
* @type {PhaserGame}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 15
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description The renderer type.
* @member PIXI.CanvasRenderer#type
2014-11-15 20:01:46 +00:00
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 25
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description The resolution of the canvas.
* @member PIXI.CanvasRenderer#resolution
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 33
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description This sets if the CanvasRenderer will clear the canvas or not before the new render pass.
If the Stage is NOT transparent Pixi will use a canvas sized fillRect operation every frame to set the canvas background color.
If the Stage is transparent Pixi will use clearRect to clear the canvas every frame.
Disable this by setting this to false. For example if your game has a canvas filling background image you often don't need this set.
* @member PIXI.CanvasRenderer#clearBeforeRender
* @type {Boolean}
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 41
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description Whether the render view is transparent
* @member PIXI.CanvasRenderer#transparent
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 53
2014-11-15 20:01:46 +00:00
*/
/**
* @description Whether the render view should be resized automatically
* @member PIXI.CanvasRenderer#autoResize
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2015-10-15 11:06:38 +00:00
* @sourceline 61
2014-11-15 20:01:46 +00:00
*/
/**
* @description The width of the canvas view
* @member PIXI.CanvasRenderer#width
* @type {Number}
* @default 800
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2015-10-15 11:06:38 +00:00
* @sourceline 69
2014-11-15 20:01:46 +00:00
*/
/**
* @description The height of the canvas view
* @member PIXI.CanvasRenderer#height
* @type {Number}
* @default 600
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2015-10-15 11:06:38 +00:00
* @sourceline 78
2014-11-15 20:01:46 +00:00
*/
/**
* @description The canvas element that everything is drawn to.
* @member PIXI.CanvasRenderer#view
* @type {HTMLCanvasElement}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2015-10-15 11:06:38 +00:00
* @sourceline 87
2014-11-15 20:01:46 +00:00
*/
/**
* @description The canvas 2d context that everything is drawn with
* @member PIXI.CanvasRenderer#context
* @type {CanvasRenderingContext2D}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2015-10-15 11:06:38 +00:00
* @sourceline 95
2014-11-15 20:01:46 +00:00
*/
/**
* @description Boolean flag controlling canvas refresh.
* @member PIXI.CanvasRenderer#refresh
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2015-10-15 11:06:38 +00:00
* @sourceline 102
2014-11-15 20:01:46 +00:00
*/
/**
* @description Internal var.
* @member PIXI.CanvasRenderer#count
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-05-19 11:36:51 +00:00
* @sourceline 110
2014-11-15 20:01:46 +00:00
*/
/**
* @description Instance of a PIXI.CanvasMaskManager, handles masking when using the canvas renderer
* @member PIXI.CanvasRenderer#CanvasMaskManager
* @type {PIXI.CanvasMaskManager}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-05-19 11:36:51 +00:00
* @sourceline 118
2014-11-15 20:01:46 +00:00
*/
/**
* @description The render session is just a bunch of parameter used for rendering
* @member PIXI.CanvasRenderer#renderSession
* @type {Object}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-05-19 11:36:51 +00:00
* @sourceline 125
2014-11-15 20:01:46 +00:00
*/
/**
2016-08-26 00:18:47 +00:00
* @description Renders the DisplayObjectContainer, usually the Phaser.Stage, to this canvas view.
2014-11-15 20:01:46 +00:00
* @method PIXI.CanvasRenderer#render
2016-08-26 00:18:47 +00:00
* @param {(PhaserStage|PIXIDisplayObjectContainer)} root - The root element to be rendered.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-05-19 11:36:51 +00:00
* @sourceline 152
2014-11-15 20:01:46 +00:00
*/
/**
* @description Removes everything from the renderer and optionally removes the Canvas DOM element.
* @method PIXI.CanvasRenderer#destroy
* @param {Boolean} [removeView=true] - Removes the Canvas element from the DOM.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 201
2014-11-15 20:01:46 +00:00
*/
/**
* @description Resizes the canvas view to the specified width and height
* @method PIXI.CanvasRenderer#resize
* @param {Number} width - the new width of the canvas view
* @param {Number} height - the new height of the canvas view
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 223
2014-11-15 20:01:46 +00:00
*/
/**
* @description Renders a display object
* @method PIXI.CanvasRenderer#renderDisplayObject
2016-12-05 10:06:09 +00:00
* @param {PIXI.DisplayObject} displayObject - The displayObject to render
2014-11-15 20:01:46 +00:00
* @param {CanvasRenderingContext2D} context - the context 2d method of the canvas
2015-07-22 14:31:30 +00:00
* @param {Matrix} [matrix] - Optional matrix to apply to the display object before rendering.
2014-11-15 20:01:46 +00:00
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 251
2014-11-15 20:01:46 +00:00
*/
/**
* @description Maps Pixi blend modes to canvas blend modes.
* @method PIXI.CanvasRenderer#mapBlendModes
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\canvas\CanvasRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 268
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\ComplexPrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.ComplexPrimitiveShader
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\ComplexPrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @member PIXI.ComplexPrimitiveShader#_UID
* @type {Number}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\ComplexPrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 12
*/
/**
* @member PIXI.ComplexPrimitiveShader#gl
* @type {WebGLContext}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\ComplexPrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 19
*/
/**
* @description The WebGL program.
* @member PIXI.ComplexPrimitiveShader#program
* @type {}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\ComplexPrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 25
*/
/**
* @description The fragment shader.
* @member PIXI.ComplexPrimitiveShader#fragmentSrc
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\ComplexPrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 32
*/
/**
* @description The vertex shader.
* @member PIXI.ComplexPrimitiveShader#vertexSrc
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\ComplexPrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 48
*/
/**
* @description Initialises the shader.
* @method PIXI.ComplexPrimitiveShader#init
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\ComplexPrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 79
*/
/**
* @description Destroys the shader.
* @method PIXI.ComplexPrimitiveShader#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\ComplexPrimitiveShader.js
2015-01-06 06:57:25 +00:00
* @sourceline 110
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiFastShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.PixiFastShader
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiFastShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @member PIXI.PixiFastShader#_UID
* @type {Number}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiFastShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 11
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.PixiFastShader#gl
* @type {WebGLContext}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiFastShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 18
2014-11-15 20:01:46 +00:00
*/
/**
* @description The WebGL program.
* @member PIXI.PixiFastShader#program
* @type {}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiFastShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 24
2014-11-15 20:01:46 +00:00
*/
/**
* @description The fragment shader.
* @member PIXI.PixiFastShader#fragmentSrc
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiFastShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 42
2014-11-15 20:01:46 +00:00
*/
/**
* @description The vertex shader.
* @member PIXI.PixiFastShader#vertexSrc
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiFastShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 75
2014-11-15 20:01:46 +00:00
*/
/**
* @description A local texture counter for multi-texture shaders.
* @member PIXI.PixiFastShader#textureCount
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiFastShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 114
2014-11-15 20:01:46 +00:00
*/
/**
* @description Initialises the shader.
* @method PIXI.PixiFastShader#init
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiFastShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 126
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys the shader.
* @method PIXI.PixiFastShader#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiFastShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 201
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Richard Davey http://www.photonstorm.com @photonstorm
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.PixiShader
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 6
*/
/**
* @member PIXI.PixiShader#_UID
* @type {Number}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 13
*/
/**
* @member PIXI.PixiShader#gl
* @type {WebGLContext}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 20
*/
/**
* @description The WebGL program.
* @member PIXI.PixiShader#program
* @type {}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 26
*/
/**
* @description The fragment shader.
* @member PIXI.PixiShader#fragmentSrc
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 33
*/
/**
* @description A local texture counter for multi-texture shaders.
* @member PIXI.PixiShader#textureCount
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 40
2014-11-15 20:01:46 +00:00
*/
/**
* @description A local flag
* @member PIXI.PixiShader#firstRun
* @type {Boolean}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 47
2014-11-15 20:01:46 +00:00
*/
/**
* @description A dirty flag
* @member PIXI.PixiShader#dirty
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 55
2014-11-15 20:01:46 +00:00
*/
/**
* @description Uniform attributes cache.
* @member PIXI.PixiShader#attributes
* @type {Array}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 62
2014-11-15 20:01:46 +00:00
*/
/**
* @description Initialises the shader.
* @method PIXI.PixiShader#init
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 218
2014-11-15 20:01:46 +00:00
*/
/**
* @description Initialises the shader uniform values.
Uniforms are specified in the GLSL_ES Specification: http://www.khronos.org/registry/webgl/specs/latest/1.0/
http://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf
* @method PIXI.PixiShader#initUniforms
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 232
2014-11-15 20:01:46 +00:00
*/
/**
* @description Initialises a Sampler2D uniform (which may only be available later on after initUniforms once the texture has loaded)
* @method PIXI.PixiShader#initSampler2D
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 306
2014-11-15 20:01:46 +00:00
*/
/**
* @description Updates the shader uniform values.
* @method PIXI.PixiShader#syncUniforms
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 382
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys the shader.
* @method PIXI.PixiShader#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 449
2014-11-15 20:01:46 +00:00
*/
/**
* @description The Default Vertex shader source.
* @member PIXI.PixiShader#defaultVertexSrc
* @type {String}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PixiShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 463
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.PrimitiveShader
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @member PIXI.PrimitiveShader#_UID
* @type {Number}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 12
*/
/**
* @member PIXI.PrimitiveShader#gl
* @type {WebGLContext}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 19
*/
/**
* @description The WebGL program.
* @member PIXI.PrimitiveShader#program
* @type {}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 25
*/
/**
* @description The fragment shader.
* @member PIXI.PrimitiveShader#fragmentSrc
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 32
*/
/**
* @description The vertex shader.
* @member PIXI.PrimitiveShader#vertexSrc
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PrimitiveShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 46
*/
/**
* @description Initialises the shader.
* @method PIXI.PrimitiveShader#init
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PrimitiveShader.js
2015-01-06 06:57:25 +00:00
* @sourceline 75
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys the shader.
* @method PIXI.PrimitiveShader#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\PrimitiveShader.js
2015-01-06 06:57:25 +00:00
* @sourceline 105
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\StripShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.StripShader
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\StripShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @member PIXI.StripShader#_UID
* @type {Number}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\StripShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 12
*/
/**
* @member PIXI.StripShader#gl
* @type {WebGLContext}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\StripShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 19
*/
/**
* @description The WebGL program.
* @member PIXI.StripShader#program
* @type {}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\StripShader.js
2014-11-15 20:01:46 +00:00
* @sourceline 25
*/
/**
* @description The fragment shader.
* @member PIXI.StripShader#fragmentSrc
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\StripShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 44
*/
/**
* @description The fragment shader.
* @member PIXI.StripShader#fragmentSrc
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\StripShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 65
2014-11-15 20:01:46 +00:00
*/
/**
* @description The vertex shader.
* @member PIXI.StripShader#vertexSrc
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\StripShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 84
2014-11-15 20:01:46 +00:00
*/
/**
* @description Initialises the shader.
* @method PIXI.StripShader#init
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\StripShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 118
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys the shader.
* @method PIXI.StripShader#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\shaders\StripShader.js
2016-11-23 00:59:32 +00:00
* @sourceline 169
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\FilterTexture.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.FilterTexture
* @param {WebGLContext} gl - the current WebGL drawing context
* @param {Number} width - the horizontal range of the filter
* @param {Number} height - the vertical range of the filter
* @param {Number} scaleMode - See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\FilterTexture.js
2016-11-23 00:59:32 +00:00
* @sourceline 46
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.FilterTexture#gl
* @type {WebGLContext}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\FilterTexture.js
2016-11-23 00:59:32 +00:00
* @sourceline 57
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.FilterTexture#frameBuffer
* @type {}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\FilterTexture.js
2016-11-23 00:59:32 +00:00
* @sourceline 64
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.FilterTexture#texture
* @type {}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\FilterTexture.js
2016-11-23 00:59:32 +00:00
* @sourceline 69
2014-11-15 20:01:46 +00:00
*/
/**
* @description Clears the filter texture.
* @method PIXI.FilterTexture#clear
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\FilterTexture.js
2016-11-23 00:59:32 +00:00
* @sourceline 81
2014-11-15 20:01:46 +00:00
*/
/**
* @description Resizes the texture to the specified width and height
* @method PIXI.FilterTexture#resize
* @param {Number} width - the new width of the texture
* @param {Number} height - the new height of the texture
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\FilterTexture.js
2016-11-23 00:59:32 +00:00
* @sourceline 94
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys the filter texture.
* @method PIXI.FilterTexture#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\FilterTexture.js
2016-11-23 00:59:32 +00:00
* @sourceline 116
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLBlendModeManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.WebGLBlendModeManager
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLBlendModeManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @member PIXI.WebGLBlendModeManager#currentBlendMode
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLBlendModeManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 12
*/
/**
* @description Sets the WebGL Context.
* @method PIXI.WebGLBlendModeManager#setContext
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLBlendModeManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 21
*/
/**
* @description Sets-up the given blendMode from WebGL's point of view.
* @method PIXI.WebGLBlendModeManager#setBlendMode
* @param {Number} blendMode - the blendMode, should be a Pixi const, such as PIXI.BlendModes.ADD
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLBlendModeManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 32
*/
/**
* @description Destroys this object.
* @method PIXI.WebGLBlendModeManager#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLBlendModeManager.js
2015-10-15 11:06:38 +00:00
* @sourceline 54
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves
Big thanks to the very clever Matt DesLauriers < mattdesl> https://github.com/mattdesl/
for creating the original pixi version!
Heavily inspired by LibGDX's WebGLSpriteBatch:
https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/graphics/g2d/WebGLSpriteBatch.java
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.WebGLFastSpriteBatch
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2014-11-15 20:01:46 +00:00
* @sourceline 11
*/
/**
* @member PIXI.WebGLFastSpriteBatch#vertSize
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 18
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#maxSize
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 24
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#size
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 30
2014-11-15 20:01:46 +00:00
*/
/**
* @description Vertex data
* @member PIXI.WebGLFastSpriteBatch#vertices
* @type {Float32Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 42
2014-11-15 20:01:46 +00:00
*/
/**
* @description Index data
* @member PIXI.WebGLFastSpriteBatch#indices
* @type {Uint16Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 49
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#vertexBuffer
* @type {Object}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 56
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#indexBuffer
* @type {Object}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 62
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#lastIndexCount
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 68
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#drawing
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 84
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#currentBatchSize
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 90
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#currentBaseTexture
* @type {PIXI.BaseTexture}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 96
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#currentBlendMode
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 102
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#renderSession
* @type {Object}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 108
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#shader
* @type {Object}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 114
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLFastSpriteBatch#matrix
2015-03-23 23:46:30 +00:00
* @type {Matrix}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 120
2014-11-15 20:01:46 +00:00
*/
/**
* @description Sets the WebGL Context.
* @method PIXI.WebGLFastSpriteBatch#setContext
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 131
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLFastSpriteBatch#begin
* @param {PIXI.WebGLSpriteBatch} spriteBatch -
* @param {Object} renderSession -
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 155
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLFastSpriteBatch#end
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 170
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLFastSpriteBatch#render
* @param {PIXI.WebGLSpriteBatch} spriteBatch -
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 178
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLFastSpriteBatch#renderSprite
* @param {PIXI.Sprite} sprite -
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 209
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLFastSpriteBatch#flush
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 360
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLFastSpriteBatch#stop
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 403
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLFastSpriteBatch#start
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFastSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 411
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.WebGLFilterManager
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @member PIXI.WebGLFilterManager#filterStack
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 11
*/
/**
* @member PIXI.WebGLFilterManager#offsetX
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 17
*/
/**
* @member PIXI.WebGLFilterManager#offsetY
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 23
*/
/**
* @description Initialises the context and the properties.
* @method PIXI.WebGLFilterManager#setContext
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 32
*/
/**
* @method PIXI.WebGLFilterManager#begin
* @param {RenderSession} renderSession -
* @param {ArrayBuffer} buffer -
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 46
*/
/**
* @description Applies the filter and adds it to the current filter stack.
* @method PIXI.WebGLFilterManager#pushFilter
* @param {Object} filterBlock - the filter that will be pushed to the current filter stack
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 62
*/
/**
* @description Removes the last filter from the filter stack and doesn't return it.
* @method PIXI.WebGLFilterManager#popFilter
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2016-02-08 17:01:36 +00:00
* @sourceline 145
2014-11-15 20:01:46 +00:00
*/
/**
* @description Applies the filter to the specified area.
* @method PIXI.WebGLFilterManager#applyFilterPass
2016-11-23 00:59:32 +00:00
* @param {PhaserFilter} filter - the filter that needs to be applied
2014-11-15 20:01:46 +00:00
* @param {PIXI.Texture} filterArea - TODO - might need an update
* @param {Number} width - the horizontal range of the filter
* @param {Number} height - the vertical range of the filter
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2016-02-08 17:01:36 +00:00
* @sourceline 336
2014-11-15 20:01:46 +00:00
*/
/**
* @description Initialises the shader buffers.
* @method PIXI.WebGLFilterManager#initShaderBuffers
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2016-02-08 17:01:36 +00:00
* @sourceline 397
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys the filter and removes it from the filter stack.
* @method PIXI.WebGLFilterManager#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLFilterManager.js
2016-02-08 17:01:36 +00:00
* @sourceline 445
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.WebGLGraphics
* @description A set of functions used by the webGL renderer to draw the primitive graphics data
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
2016-02-08 17:01:36 +00:00
2014-11-15 20:01:46 +00:00
/**
* @description Renders the graphics object
* @method PIXI.WebGLGraphics.renderGraphics
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphics -
2014-11-15 20:01:46 +00:00
* @param {Object} renderSession -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 23
2014-11-15 20:01:46 +00:00
*/
/**
* @description Updates the graphics object
* @method PIXI.WebGLGraphics.updateGraphics
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphicsData - The graphics object to update
2014-11-15 20:01:46 +00:00
* @param {WebGLContext} gl - the current WebGL drawing context
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 93
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLGraphics.switchMode
* @param {WebGLContext} webGL -
* @param {Number} type -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 218
2014-11-15 20:01:46 +00:00
*/
/**
* @description Builds a rectangle to draw
* @method PIXI.WebGLGraphics.buildRectangle
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphicsData - The graphics object containing all the necessary properties
2014-11-15 20:01:46 +00:00
* @param {Object} webGLData -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 252
2014-11-15 20:01:46 +00:00
*/
/**
* @description Builds a rounded rectangle to draw
* @method PIXI.WebGLGraphics.buildRoundedRectangle
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphicsData - The graphics object containing all the necessary properties
2014-11-15 20:01:46 +00:00
* @param {Object} webGLData -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 320
2014-11-15 20:01:46 +00:00
*/
/**
* @description Calculate the points for a quadratic bezier curve. (helper function..)
Based on: https://stackoverflow.com/questions/785097/how-do-i-implement-a-bezier-curve-in-c
* @method PIXI.WebGLGraphics.quadraticBezierCurve
* @param {Number} fromX - Origin point x
* @param {Number} fromY - Origin point x
* @param {Number} cpX - Control point x
* @param {Number} cpY - Control point y
* @param {Number} toX - Destination point x
* @param {Number} toY - Destination point y
* @return {Array< Number>}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 390
2014-11-15 20:01:46 +00:00
*/
/**
* @description Builds a circle to draw
* @method PIXI.WebGLGraphics.buildCircle
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphicsData - The graphics object to draw
2014-11-15 20:01:46 +00:00
* @param {Object} webGLData -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 442
2014-11-15 20:01:46 +00:00
*/
/**
* @description Builds a line to draw
* @method PIXI.WebGLGraphics.buildLine
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphicsData - The graphics object containing all the necessary properties
2014-11-15 20:01:46 +00:00
* @param {Object} webGLData -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 525
2014-11-15 20:01:46 +00:00
*/
/**
* @description Builds a complex polygon to draw
* @method PIXI.WebGLGraphics.buildComplexPoly
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphicsData - The graphics object containing all the necessary properties
2014-11-15 20:01:46 +00:00
* @param {Object} webGLData -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 737
2014-11-15 20:01:46 +00:00
*/
/**
* @description Builds a polygon to draw
* @method PIXI.WebGLGraphics.buildPoly
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphicsData - The graphics object containing all the necessary properties
2014-11-15 20:01:46 +00:00
* @param {Object} webGLData -
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 799
2014-11-15 20:01:46 +00:00
*/
/**
* @class PIXI.WebGLGraphicsData
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 854
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLGraphicsData#reset
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 874
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLGraphicsData#upload
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLGraphics.js
2016-02-08 17:01:36 +00:00
* @sourceline 883
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLMaskManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.WebGLMaskManager
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLMaskManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @description Sets the drawing context to the one given in parameter.
* @method PIXI.WebGLMaskManager#setContext
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLMaskManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 16
*/
/**
* @description Applies the Mask and adds it to the current filter stack.
* @method PIXI.WebGLMaskManager#pushMask
* @param {Array} maskData -
* @param {Object} renderSession -
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLMaskManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 27
*/
/**
* @description Removes the last filter from the filter stack and doesn't return it.
* @method PIXI.WebGLMaskManager#popMask
* @param {Array} maskData -
* @param {Object} renderSession - an object containing all the useful parameters
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLMaskManager.js
2016-02-08 17:01:36 +00:00
* @sourceline 51
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys the mask stack.
* @method PIXI.WebGLMaskManager#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLMaskManager.js
2016-02-08 17:01:36 +00:00
* @sourceline 71
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.WebGLShaderManager
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @member PIXI.WebGLShaderManager#maxAttibs
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 12
*/
/**
* @member PIXI.WebGLShaderManager#attribState
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 18
*/
/**
* @member PIXI.WebGLShaderManager#tempAttribState
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 24
*/
/**
* @member PIXI.WebGLShaderManager#stack
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 35
*/
/**
* @description Initialises the context and the properties.
* @method PIXI.WebGLShaderManager#setContext
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 45
*/
/**
* @description Takes the attributes given in parameters.
* @method PIXI.WebGLShaderManager#setAttribs
* @param {Array} attribs - attribs
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderManager.js
2016-05-19 11:36:51 +00:00
* @sourceline 73
2014-11-15 20:01:46 +00:00
*/
/**
* @description Sets the current shader.
* @method PIXI.WebGLShaderManager#setShader
* @param {} shader -
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderManager.js
2016-05-19 11:36:51 +00:00
* @sourceline 116
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys this object.
* @method PIXI.WebGLShaderManager#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderManager.js
2016-05-19 11:36:51 +00:00
* @sourceline 136
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderUtils.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.WebGLSpriteBatch
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2014-12-03 10:39:11 +00:00
* @sourceline 12
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLSpriteBatch.initDefaultShaders
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderUtils.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @method PIXI.WebGLSpriteBatch.CompileVertexShader
* @param {WebGLContext} gl - the current WebGL drawing context
* @param {Array} shaderSrc -
* @return {}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderUtils.js
2014-11-15 20:01:46 +00:00
* @sourceline 14
*/
/**
* @method PIXI.WebGLSpriteBatch.CompileFragmentShader
* @param {WebGLContext} gl - the current WebGL drawing context
* @param {Array} shaderSrc -
* @return {}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderUtils.js
2014-11-15 20:01:46 +00:00
* @sourceline 26
*/
/**
* @method PIXI.WebGLSpriteBatch._CompileShader
* @param {WebGLContext} gl - the current WebGL drawing context
* @param {Array} shaderSrc -
* @param {Number} shaderType -
* @return {}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderUtils.js
2014-11-15 20:01:46 +00:00
* @sourceline 38
*/
/**
* @method PIXI.WebGLSpriteBatch.compileProgram
* @param {WebGLContext} gl - the current WebGL drawing context
* @param {Array} vertexSrc -
* @param {Array} fragmentSrc -
* @return {}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLShaderUtils.js
2015-07-22 14:31:30 +00:00
* @sourceline 69
2014-11-15 20:01:46 +00:00
*/
2016-11-23 00:59:32 +00:00
/**
* @member PIXI.WebGLSpriteBatch#game - A reference to the currently running game.
* @type {PhaserGame}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 20
*/
2014-11-15 20:01:46 +00:00
/**
* @member PIXI.WebGLSpriteBatch#vertSize
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 25
2014-11-15 20:01:46 +00:00
*/
/**
* @description The number of images in the SpriteBatch before it flushes
* @member PIXI.WebGLSpriteBatch#size
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 31
2014-11-15 20:01:46 +00:00
*/
/**
* @description Holds the vertices
* @member PIXI.WebGLSpriteBatch#vertices
2014-12-03 10:39:11 +00:00
* @type {ArrayBuffer}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 48
2014-12-03 10:39:11 +00:00
*/
/**
* @description View on the vertices as a Float32Array
* @member PIXI.WebGLSpriteBatch#positions
2014-11-15 20:01:46 +00:00
* @type {Float32Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 56
2014-12-03 10:39:11 +00:00
*/
/**
* @description View on the vertices as a Uint32Array
* @member PIXI.WebGLSpriteBatch#colors
* @type {Uint32Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 64
2014-11-15 20:01:46 +00:00
*/
/**
* @description Holds the indices
* @member PIXI.WebGLSpriteBatch#indices
* @type {Uint16Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 72
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLSpriteBatch#lastIndexCount
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 80
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLSpriteBatch#drawing
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 95
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLSpriteBatch#currentBatchSize
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 101
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLSpriteBatch#currentBaseTexture
* @type {PIXI.BaseTexture}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 107
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLSpriteBatch#dirty
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 113
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLSpriteBatch#textures
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 119
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLSpriteBatch#blendModes
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 125
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLSpriteBatch#shaders
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 131
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLSpriteBatch#sprites
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 137
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLSpriteBatch#defaultShader
2016-11-23 00:59:32 +00:00
* @type {PhaserFilter}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 143
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLSpriteBatch#setContext
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 150
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLSpriteBatch#begin
* @param {Object} renderSession - The RenderSession object
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 222
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLSpriteBatch#end
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 233
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLSpriteBatch#render
* @param {PIXI.Sprite} sprite - the sprite to render when using this spritebatch
2015-07-22 14:31:30 +00:00
* @param {Matrix} [matrix] - - Optional matrix. If provided the Display Object will be rendered using this matrix, otherwise it will use its worldTransform.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 240
2014-11-15 20:01:46 +00:00
*/
/**
* @description Renders a TilingSprite using the spriteBatch.
* @method PIXI.WebGLSpriteBatch#renderTilingSprite
2016-11-23 00:59:32 +00:00
* @param {TilingSprite} sprite - the sprite to render
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 410
2014-11-15 20:01:46 +00:00
*/
/**
* @description Renders the content and empties the current batch.
* @method PIXI.WebGLSpriteBatch#flush
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 550
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLSpriteBatch#renderBatch
* @param {PIXI.Texture} texture -
* @param {Number} size -
* @param {Number} startIndex -
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 689
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLSpriteBatch#stop
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 714
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLSpriteBatch#start
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 722
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys the SpriteBatch.
* @method PIXI.WebGLSpriteBatch#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLSpriteBatch.js
2016-11-23 00:59:32 +00:00
* @sourceline 729
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLStencilManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.WebGLStencilManager
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLStencilManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 5
*/
/**
* @description Sets the drawing context to the one given in parameter.
* @method PIXI.WebGLStencilManager#setContext
* @param {WebGLContext} gl - the current WebGL drawing context
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLStencilManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 17
*/
/**
* @description Applies the Mask and adds it to the current filter stack.
* @method PIXI.WebGLStencilManager#pushMask
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphics -
2014-11-15 20:01:46 +00:00
* @param {Array} webGLData -
* @param {Object} renderSession -
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLStencilManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 28
*/
/**
* @description TODO this does not belong here!
* @method PIXI.WebGLStencilManager#bindGraphics
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphics -
2014-11-15 20:01:46 +00:00
* @param {Array} webGLData -
* @param {Object} renderSession -
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLStencilManager.js
2014-11-15 20:01:46 +00:00
* @sourceline 120
*/
/**
* @method PIXI.WebGLStencilManager#popStencil
2016-11-23 00:59:32 +00:00
* @param {Graphics} graphics -
2014-11-15 20:01:46 +00:00
* @param {Array} webGLData -
* @param {Object} renderSession -
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLStencilManager.js
2015-01-06 06:57:25 +00:00
* @sourceline 193
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys the mask stack.
* @method PIXI.WebGLStencilManager#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\utils\WebGLStencilManager.js
2015-01-06 06:57:25 +00:00
* @sourceline 288
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.WebGLRenderer
* @description The WebGLRenderer draws the stage and all its content onto a webGL enabled canvas. This renderer
should be used for browsers that support webGL. This Render works by automatically managing webGLBatchs.
So no need for Sprite Batches or Sprite Clouds.
Don't forget to add the view to your DOM or you will not see anything :)
2015-10-15 11:06:38 +00:00
* @param {PhaserGame} game - A reference to the Phaser Game instance
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 9
2014-11-15 20:01:46 +00:00
*/
/**
2015-10-15 11:06:38 +00:00
* @member PIXI.WebGLRenderer#game - A reference to the Phaser Game instance.
* @type {PhaserGame}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 21
2015-10-15 11:06:38 +00:00
*/
/**
2014-11-15 20:01:46 +00:00
* @member PIXI.WebGLRenderer#type
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 33
2014-11-15 20:01:46 +00:00
*/
/**
* @description The resolution of the renderer
* @member PIXI.WebGLRenderer#resolution
* @type {Number}
* @default 1
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 39
2014-11-15 20:01:46 +00:00
*/
/**
* @description Whether the render view is transparent
* @member PIXI.WebGLRenderer#transparent
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 48
2014-11-15 20:01:46 +00:00
*/
/**
* @description Whether the render view should be resized automatically
* @member PIXI.WebGLRenderer#autoResize
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 56
2014-11-15 20:01:46 +00:00
*/
/**
* @description The value of the preserveDrawingBuffer flag affects whether or not the contents of the stencil buffer is retained after rendering.
* @member PIXI.WebGLRenderer#preserveDrawingBuffer
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 64
2014-11-15 20:01:46 +00:00
*/
/**
* @description This sets if the WebGLRenderer will clear the context texture or not before the new render pass. If true:
If the Stage is NOT transparent, Pixi will clear to alpha (0, 0, 0, 0).
If the Stage is transparent, Pixi will clear to the target Stage's background color.
Disable this by setting this to false. For example: if your game has a canvas filling background image, you often don't need this set.
* @member PIXI.WebGLRenderer#clearBeforeRender
* @type {Boolean}
* @default
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 72
2014-11-15 20:01:46 +00:00
*/
/**
* @description The width of the canvas view
* @member PIXI.WebGLRenderer#width
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 84
2014-11-15 20:01:46 +00:00
*/
/**
* @description The height of the canvas view
* @member PIXI.WebGLRenderer#height
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 92
2014-11-15 20:01:46 +00:00
*/
/**
* @description The canvas element that everything is drawn to
* @member PIXI.WebGLRenderer#view
* @type {HTMLCanvasElement}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 100
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLRenderer#_contextOptions
* @type {Object}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 108
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLRenderer#projection
2015-03-23 23:46:30 +00:00
* @type {Point}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 121
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLRenderer#offset
2015-03-23 23:46:30 +00:00
* @type {Point}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 127
2014-11-15 20:01:46 +00:00
*/
/**
* @description Deals with managing the shader programs and their attribs
* @member PIXI.WebGLRenderer#shaderManager
* @type {PIXI.WebGLShaderManager}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 135
2014-11-15 20:01:46 +00:00
*/
/**
* @description Manages the rendering of sprites
* @member PIXI.WebGLRenderer#spriteBatch
* @type {PIXI.WebGLSpriteBatch}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 142
2014-11-15 20:01:46 +00:00
*/
/**
* @description Manages the masks using the stencil buffer
* @member PIXI.WebGLRenderer#maskManager
* @type {PIXI.WebGLMaskManager}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 149
2014-11-15 20:01:46 +00:00
*/
/**
* @description Manages the filters
* @member PIXI.WebGLRenderer#filterManager
* @type {PIXI.WebGLFilterManager}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 156
2014-11-15 20:01:46 +00:00
*/
/**
* @description Manages the stencil buffer
* @member PIXI.WebGLRenderer#stencilManager
* @type {PIXI.WebGLStencilManager}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 163
2014-11-15 20:01:46 +00:00
*/
/**
* @description Manages the blendModes
* @member PIXI.WebGLRenderer#blendModeManager
* @type {PIXI.WebGLBlendModeManager}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 170
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.WebGLRenderer#renderSession
* @type {Object}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 177
*/
/**
* @member PIXI.WebGLRenderer#currentBatchedTextures
* @type {Array}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 183
2014-11-15 20:01:46 +00:00
*/
/**
* @method PIXI.WebGLRenderer#initContext
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 213
*/
/**
* @description If Multi Texture support has been enabled, then calling this method will enable batching on the given
textures. The texture collection is an array of keys, that map to Phaser.Cache image entries.
The number of textures that can be batched is dependent on hardware. If you provide more textures
than can be batched by the GPU, then only those at the start of the array will be used. Generally
you shouldn't provide more than 16 textures to this method. You can check the hardware limit via the
`maxTextures` property.
You can also check the property `currentBatchedTextures` at any time, to see which textures are currently
being batched.
To stop all textures from being batched, call this method again with an empty array.
To change the textures being batched, call this method with a new array of image keys. The old ones
will all be purged out and no-longer batched, and the new ones enabled.
Note: Throws a warning if you haven't enabled Multiple Texture batching support in the Phaser Game config.
* @method PIXI.WebGLRenderer#setTexturePriority
* @param {Array} textureNameCollection - An Array of Texture Cache keys to use for multi-texture batching.
* @return {Array} An array containing the texture keys that were enabled for batching.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 265
2014-11-15 20:01:46 +00:00
*/
/**
* @description Renders the stage to its webGL view
* @method PIXI.WebGLRenderer#render
2015-10-15 11:06:38 +00:00
* @param {Stage} stage - the Stage element to be rendered
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 344
2014-11-15 20:01:46 +00:00
*/
/**
* @description Renders a Display Object.
* @method PIXI.WebGLRenderer#renderDisplayObject
2016-12-05 10:06:09 +00:00
* @param {PIXI.DisplayObject} displayObject - The DisplayObject to render
2015-03-23 23:46:30 +00:00
* @param {Point} projection - The projection
2014-11-15 20:01:46 +00:00
* @param {Array} buffer - a standard WebGL buffer
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 379
2014-11-15 20:01:46 +00:00
*/
/**
* @description Resizes the webGL view to the specified width and height.
* @method PIXI.WebGLRenderer#resize
* @param {Number} width - the new width of the webGL view
* @param {Number} height - the new height of the webGL view
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 416
*/
/**
* @description Updates and creates a WebGL compressed texture for the renderers context.
* @method PIXI.WebGLRenderer#updateCompressedTexture
* @param {PIXI.Texture} texture - the texture to update
* @return {Boolean} True if the texture was successfully bound, otherwise false.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 442
2014-11-15 20:01:46 +00:00
*/
/**
* @description Updates and Creates a WebGL texture for the renderers context.
* @method PIXI.WebGLRenderer#updateTexture
* @param {PIXI.Texture} texture - the texture to update
2015-10-15 11:06:38 +00:00
* @return {Boolean} True if the texture was successfully bound, otherwise false.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 501
2014-11-15 20:01:46 +00:00
*/
/**
* @description Removes everything from the renderer (event listeners, spritebatch, etc...)
* @method PIXI.WebGLRenderer#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 562
2014-11-15 20:01:46 +00:00
*/
/**
* @description Maps Pixi blend modes to WebGL blend modes.
* @method PIXI.WebGLRenderer#mapBlendModes
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\renderers\webgl\WebGLRenderer.js
2016-11-23 00:59:32 +00:00
* @sourceline 594
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.BaseTexture
* @description A texture stores the information that represents an image. All textures have a base texture.
2016-07-08 14:46:26 +00:00
* @param {(String|Canvas)} source - the source object (image or canvas)
2014-11-15 20:01:46 +00:00
* @param {Number} scaleMode - See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values
2016-11-28 16:50:04 +00:00
* @param {Number} [resolution] - the resolution of the texture (for HiDPI displays)
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-07-08 14:46:26 +00:00
* @sourceline 5
2014-11-15 20:01:46 +00:00
*/
/**
* @description The Resolution of the texture.
* @member PIXI.BaseTexture#resolution
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 17
2014-11-15 20:01:46 +00:00
*/
/**
* @description [read-only] The width of the base texture set when the image has loaded
* @member PIXI.BaseTexture#width
* @type {Number}
* @readonly
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 25
2014-11-15 20:01:46 +00:00
*/
/**
* @description [read-only] The height of the base texture set when the image has loaded
* @member PIXI.BaseTexture#height
* @type {Number}
* @readonly
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 34
2014-11-15 20:01:46 +00:00
*/
/**
* @description The scale mode to apply when scaling this texture
* @member PIXI.BaseTexture#scaleMode
* @type {Number}
* @default PIXI.scaleModes.LINEAR
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 43
2014-11-15 20:01:46 +00:00
*/
/**
* @description [read-only] Set to true once the base texture has loaded
* @member PIXI.BaseTexture#hasLoaded
* @type {Boolean}
* @readonly
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 52
2014-11-15 20:01:46 +00:00
*/
/**
* @description The image source that is used to create the texture.
* @member PIXI.BaseTexture#source
* @type {Image}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 61
2014-11-15 20:01:46 +00:00
*/
/**
* @description Controls if RGB channels should be pre-multiplied by Alpha (WebGL only)
* @member PIXI.BaseTexture#premultipliedAlpha
* @type {Boolean}
* @default true
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 69
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.BaseTexture#_glTextures
* @type {Array}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 80
2014-11-15 20:01:46 +00:00
*/
/**
2014-12-03 10:39:11 +00:00
* @description Set this to true if a mipmap of this texture needs to be generated. This value needs to be set before the texture is used
2015-07-22 14:31:30 +00:00
Also the texture must be a power of two size to work
2014-12-03 10:39:11 +00:00
* @member PIXI.BaseTexture#mipmap
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 87
2014-12-03 10:39:11 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description The multi texture batching index number.
* @member PIXI.BaseTexture#textureIndex
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 96
2016-11-23 00:59:32 +00:00
*/
/**
2014-11-15 20:01:46 +00:00
* @member PIXI.BaseTexture#_dirty
* @type {Array}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 103
2014-11-15 20:01:46 +00:00
*/
/**
2015-10-15 11:06:38 +00:00
* @description A BaseTexture can be set to skip the rendering phase in the WebGL Sprite Batch.
You may want to do this if you have a parent Sprite with no visible texture (i.e. uses the internal `__default` texture)
that has children that you do want to render, without causing a batch flush in the process.
* @member PIXI.BaseTexture#skipRender
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 123
2014-11-15 20:01:46 +00:00
*/
/**
* @member PIXI.BaseTexture#_powerOf2
* @type {Boolean}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 134
2015-07-22 14:31:30 +00:00
*/
/**
* @description Forces this BaseTexture to be set as loaded, with the given width and height.
Then calls BaseTexture.dirty.
Important for when you don't want to modify the source object by forcing in `complete` or dimension properties it may not have.
* @method PIXI.BaseTexture#forceLoaded
* @param {Number} width - - The new width to force the BaseTexture to be.
* @param {Number} height - - The new height to force the BaseTexture to be.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 145
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys this base texture
* @method PIXI.BaseTexture#destroy
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 162
2014-11-15 20:01:46 +00:00
*/
/**
* @description Changes the source image of the texture
* @method PIXI.BaseTexture#updateSourceImage
* @param {String} newSrc - the path of the image
2016-07-08 14:46:26 +00:00
* @deprecated true
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 179
2014-11-15 20:01:46 +00:00
*/
/**
* @description Sets all glTextures to be dirty.
* @method PIXI.BaseTexture#dirty
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 191
2014-11-15 20:01:46 +00:00
*/
/**
* @description Removes the base texture from the GPU, useful for managing resources on the GPU.
Atexture is still 100% usable and will simply be reuploaded if there is a sprite on screen that is using it.
* @method PIXI.BaseTexture#unloadFromGPU
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 204
2014-11-15 20:01:46 +00:00
*/
/**
* @description Helper function that creates a base texture from the given canvas element.
* @method PIXI.BaseTexture.fromCanvas
* @param {Canvas} canvas - The canvas element source of the texture
* @param {Number} scaleMode - See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values
2016-11-28 16:50:04 +00:00
* @param {Number} [resolution] - the resolution of the texture (for HiDPI displays)
2016-02-08 17:01:36 +00:00
* @return {PIXI.BaseTexture}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\BaseTexture.js
2016-11-28 16:50:04 +00:00
* @sourceline 232
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
* @class PIXI.Texture
* @description A texture stores the information that represents an image or part of an image. It cannot be added
to the display list directly. Instead use it as the texture for a PIXI.Sprite. If no frame is provided then the whole image is used.
* @param {PIXI.BaseTexture} baseTexture - The base texture source to create the texture from
2015-03-23 23:46:30 +00:00
* @param {Rectangle} frame - The rectangle frame of the texture to show
* @param {Rectangle} [crop] - The area of original texture
* @param {Rectangle} [trim] - Trimmed texture rectangle
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 14
2014-11-15 20:01:46 +00:00
*/
2015-03-23 23:46:30 +00:00
2014-11-15 20:01:46 +00:00
/**
* @description Does this Texture have any frame data assigned to it?
* @member PIXI.Texture#noFrame
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 28
2014-11-15 20:01:46 +00:00
*/
/**
* @description The base texture that this texture uses.
* @member PIXI.Texture#baseTexture
* @type {PIXI.BaseTexture}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 47
2014-11-15 20:01:46 +00:00
*/
/**
* @description The frame specifies the region of the base texture that this texture uses
* @member PIXI.Texture#frame
2015-03-23 23:46:30 +00:00
* @type {Rectangle}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 55
2014-11-15 20:01:46 +00:00
*/
/**
* @description The texture trim data.
* @member PIXI.Texture#trim
2015-03-23 23:46:30 +00:00
* @type {Rectangle}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 63
2014-11-15 20:01:46 +00:00
*/
/**
* @description This will let the renderer know if the texture is valid. If it's not then it cannot be rendered.
* @member PIXI.Texture#valid
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 71
2014-11-15 20:01:46 +00:00
*/
/**
2015-07-22 14:31:30 +00:00
* @description Is this a tiling texture? As used by the likes of a TilingSprite.
* @member PIXI.Texture#isTiling
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 79
2015-07-22 14:31:30 +00:00
*/
/**
2014-11-15 20:01:46 +00:00
* @description This will let a renderer know that a texture has been updated (used mainly for webGL uv updates)
* @member PIXI.Texture#requiresUpdate
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 87
2015-07-22 14:31:30 +00:00
*/
/**
* @description This will let a renderer know that a tinted parent has updated its texture.
* @member PIXI.Texture#requiresReTint
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 95
2014-11-15 20:01:46 +00:00
*/
/**
* @description The WebGL UV data cache.
* @member PIXI.Texture#_uvs
* @type {Object}
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 103
2014-11-15 20:01:46 +00:00
*/
/**
* @description The width of the Texture in pixels.
* @member PIXI.Texture#width
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 112
2014-11-15 20:01:46 +00:00
*/
/**
* @description The height of the Texture in pixels.
* @member PIXI.Texture#height
* @type {Number}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 120
2014-11-15 20:01:46 +00:00
*/
/**
* @description This is the area of the BaseTexture image to actually copy to the Canvas / WebGL when rendering,
irrespective of the actual frame size or placement (which can be influenced by trimmed texture atlases)
* @member PIXI.Texture#crop
2015-03-23 23:46:30 +00:00
* @type {Rectangle}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-07-08 14:46:26 +00:00
* @sourceline 128
2014-11-15 20:01:46 +00:00
*/
/**
2016-11-23 00:59:32 +00:00
* @description A flag that controls if this frame is rotated or not.
Rotation allows you to use rotated frames in texture atlas packing, it has nothing to do with
Sprite rotation.
* @member PIXI.Texture#rotated
* @type {Boolean}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-11-23 00:59:32 +00:00
* @sourceline 137
*/
/**
2014-11-15 20:01:46 +00:00
* @description Called when the base texture is loaded
* @method PIXI.Texture#onBaseTextureLoaded
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-11-23 00:59:32 +00:00
* @sourceline 157
2014-11-15 20:01:46 +00:00
*/
/**
* @description Destroys this texture
* @method PIXI.Texture#destroy
* @param {Boolean} destroyBase - Whether to destroy the base texture as well
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-11-23 00:59:32 +00:00
* @sourceline 175
2014-11-15 20:01:46 +00:00
*/
/**
* @description Specifies the region of the baseTexture that this texture will use.
* @method PIXI.Texture#setFrame
2015-03-23 23:46:30 +00:00
* @param {Rectangle} frame - The frame of the texture to set it to
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-11-23 00:59:32 +00:00
* @sourceline 188
2014-11-15 20:01:46 +00:00
*/
/**
* @description Updates the internal WebGL UV cache.
* @method PIXI.Texture#_updateUvs
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-11-23 00:59:32 +00:00
* @sourceline 232
*/
/**
* @description Updates the internal WebGL UV cache.
* @method PIXI.Texture#_updateUvsInverted
* @access private
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-11-23 00:59:32 +00:00
* @sourceline 259
2014-11-15 20:01:46 +00:00
*/
/**
* @description Helper function that creates a new a Texture based on the given canvas element.
* @method PIXI.Texture.fromCanvas
* @param {Canvas} canvas - The canvas element source of the texture
* @param {Number} scaleMode - See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values
2016-02-08 17:01:36 +00:00
* @return {PIXI.Texture}
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\textures\Texture.js
2016-11-23 00:59:32 +00:00
* @sourceline 287
2014-11-15 20:01:46 +00:00
*/
/**
* @fileoverview
* @author Mat Groves http://matgroves.com/ @Doormat23
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\Intro.js
2014-11-15 20:01:46 +00:00
* @sourceline 1
*/
/**
2015-03-23 23:46:30 +00:00
* @class PIXI.PIXI
* @description Namespace-class for [pixi.js](http://www.pixijs.com/).
Contains assorted static properties and enumerations.
2016-12-05 10:06:09 +00:00
* @sourcefile d:\wamp\www\phaser\v2-community\src\pixi\Pixi.js
2015-03-23 23:46:30 +00:00
* @sourceline 11
2014-11-15 20:01:46 +00:00
*/
2015-03-23 23:46:30 +00:00
2016-12-05 10:06:09 +00:00
< / pre >
< / article >
< / section >
< / div >
< div class = "clearfix" > < / div >
< footer >
< span class = "copyright" >
Phaser Copyright © 2012-2016 Photon Storm Ltd.
< / span >
< br / >
< span class = "jsdoc-message" >
Documentation generated by < a href = "https://github.com/jsdoc3/jsdoc" > JSDoc 3.4.3< / a >
on Mon Dec 05 2016 10:04:31 GMT+0000 (GMT Standard Time) using the < a href = "https://github.com/terryweiss/docstrap" > DocStrap template< / a > .
< / span >
< / footer >
< / div >
< br clear = "both" >
< / div >
< / div >
< script src = "scripts/sunlight.js" > < / script >
< script src = "scripts/sunlight.javascript.js" > < / script >
< script src = "scripts/sunlight-plugin.doclinks.js" > < / script >
< script src = "scripts/sunlight-plugin.linenumbers.js" > < / script >
< script src = "scripts/sunlight-plugin.menu.js" > < / script >
< script src = "scripts/jquery.min.js" > < / script >
< script src = "scripts/jquery.scrollTo.js" > < / script >
< script src = "scripts/jquery.localScroll.js" > < / script >
< script src = "scripts/bootstrap-dropdown.js" > < / script >
< script src = "scripts/toc.js" > < / script >
< script > Sunlight . highlightAll ( { lineNumbers : true , showMenu : true , enableDoclinks : true } ) ; < / script >
< script >
$( function () {
$( "#toc" ).toc( {
anchorName : function(i, heading, prefix) {
return $(heading).attr("id") || ( prefix + i );
},
selectors : "h1,h2,h3,h4",
showAndHide : false,
scrollTo : 60
} );
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
} );
< / script >
< / body >
< / html >