Classes
- AccessibilityManager
- BaseRenderTexture
- BaseTexture
- BlendModeManager
- Bounds
- CanvasExtract
- CanvasMaskManager
- CanvasPrepare
- CanvasRenderer
- CanvasRenderTarget
- Circle
- Container
- DisplayObject
- Ellipse
- Filter
- FilterManager
- FXAAFilter
- Graphics
- GraphicsData
- GraphicsRenderer
- MaskManager
- Matrix
- module.exports
- module.exports
- ObjectRenderer
- ObservablePoint
- ParticleShader
- Point
- Polygon
- PrimitiveShader
- Quad
- Rectangle
- RenderTarget
- RenderTexture
- RoundedRectangle
- Shader
- Sprite
- SpriteMaskFilter
- StencilManager
- SystemRenderer
- Text
- TextStyle
- Texture
- TextureGarbageCollector
- TextureManager
- Transform
- TransformBase
- TransformStatic
- VideoBaseTexture
- WebGLExtract
- WebGLManager
- WebGLPrepare
- WebGLRenderer
- WebGLState
Namespaces
- AccessibilityManager
- CanvasTinter
- extras
- filters
- GroupD8
- interaction
- loaders
- mesh
- particles
- prepare
- ticker
- utils
Members
-
staticPIXI.loader
-
A premade instance of the loader that can be used to loader resources.
Properties:
Type Description PIXI.loaders.Loader
Methods
-
staticPIXI.exports.autoDetectRenderer(width, height, options, noWebGL){PIXI.WebGLRenderer|PIXI.CanvasRenderer}
-
This helper function will automatically detect which renderer you should be using.
WebGL is the preferred renderer as it is a lot faster. If webGL is not supported by
the browser then this function will return a canvas rendererName Type Default Description width
number 800 optional the width of the renderers view
height
number 600 optional the height of the renderers view
options
object optional The optional renderer parameters
Name Type Default Description view
HTMLCanvasElement optional the canvas to use as a view, optional
transparent
boolean false optional If the render view is transparent, default false
antialias
boolean false optional sets antialias (only applicable in chrome at the moment)
preserveDrawingBuffer
boolean false optional enables drawing buffer preservation, enable this if you
need to call toDataUrl on the webgl contextresolution
number 1 optional The resolution / device pixel ratio of the renderer, retina would be 2
noWebGL
boolean false optional prevents selection of WebGL renderer, even if such is present
Returns:
Type Description PIXI.WebGLRenderer | PIXI.CanvasRenderer Returns WebGL renderer if available, otherwise CanvasRenderer -
staticPIXI.module.exports(array){Array.<string>}
-
Maps blend combinations to Canvas.
Name Type Default Description array
Array.<string> [] optional The array to output into.
Returns:
Type Description Array.<string> Mapped modes. -
staticPIXI.module.exports(gl, array){Array.<string>}
-
Maps gl blend combinations to WebGL.
Name Type Default Description gl
WebGLRenderingContext The rendering context.
array
Array.<string> [] optional The array to output into.
Returns:
Type Description Array.<string> Mapped modes.