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 load 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 widthnumber 800 optional the width of the renderers view
heightnumber 600 optional the height of the renderers view
optionsobject optional The optional renderer parameters
Name Type Default Description viewHTMLCanvasElement optional the canvas to use as a view, optional
transparentboolean false optional If the render view is transparent, default false
antialiasboolean false optional sets antialias (only applicable in chrome at the moment)
preserveDrawingBufferboolean false optional enables drawing buffer preservation, enable this if you
need to call toDataUrl on the webgl contextresolutionnumber 1 optional The resolution / device pixel ratio of the renderer, retina would be 2
noWebGLboolean 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 arrayArray.<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 glWebGLRenderingContext The rendering context.
arrayArray.<string> [] optional The array to output into.
Returns:
Type Description Array.<string> Mapped modes.