Classes
- Application
- BaseRenderTexture
- BaseTexture
- BlendModeManager
- Bounds
- Buffer
- CanvasExtract
- CanvasMaskManager
- CanvasRenderer
- CanvasRenderTarget
- CanvasTinter
- Circle
- Container
- CountLimiter
- DisplayObject
- Ellipse
- Filter
- FilterManager
- Graphics
- GraphicsData
- GraphicsRenderer
- GroupD8
- MaskManager
- Matrix
- MeshRenderer
- ObjectRenderer
- ObservablePoint
- ParticleShader
- Point
- Polygon
- PrimitiveShader
- Quad
- Rectangle
- RenderTarget
- RenderTexture
- RoundedRectangle
- Shader
- Sprite
- SpriteMaskFilter
- Spritesheet
- StencilManager
- SystemRenderer
- Text
- TextStyle
- Texture
- TextureGarbageCollector
- TextureManager
- TilingSpriteRenderer
- TimeLimiter
- Transform
- TransformBase
- TransformStatic
- VideoBaseTexture
- WebGLExtract
- WebGLManager
- WebGLRenderer
- WebGLState
Namespaces
Members
-
static,constantPIXI.BLEND_MODESobject
-
Various blend modes supported by PIXI.
IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
Anything else will silently act like NORMAL.Properties:
Name Type Description NORMALnumber ADDnumber MULTIPLYnumber SCREENnumber OVERLAYnumber DARKENnumber LIGHTENnumber COLOR_DODGEnumber COLOR_BURNnumber HARD_LIGHTnumber SOFT_LIGHTnumber DIFFERENCEnumber EXCLUSIONnumber HUEnumber SATURATIONnumber COLORnumber LUMINOSITYnumber -
static,constantPIXI.CAN_UPLOAD_SAME_BUFFERboolean
-
Can we upload the same buffer in a single frame?
-
static,constantPIXI.DATA_URIRegExp string
-
Regexp for data URI.
Based on: https://github.com/ragingwind/data-uri-regexExample
data:image/png;base64 -
static,constantPIXI.DEFAULT_RENDER_OPTIONS
-
- Deprecated
- since version 4.2.0
- See:
-
static,constantPIXI.DRAW_MODESobject
-
Various webgl draw modes. These can be used to specify which GL drawMode to use
under certain situations and renderers.Properties:
Name Type Description POINTSnumber LINESnumber LINE_LOOPnumber LINE_STRIPnumber TRIANGLESnumber TRIANGLE_STRIPnumber TRIANGLE_FANnumber -
static,constantPIXI.FILTER_RESOLUTION
-
- Deprecated
- since version 4.2.0
- See:
-
static,constantPIXI.GC_MODESobject
-
The gc modes that are supported by pixi.
The PIXI.settings.GC_MODE Garbage Collection mode for pixi textures is AUTO
If set to GC_MODE, the renderer will occasionally check textures usage. If they are not
used for a specified period of time they will be removed from the GPU. They will of course
be uploaded again when they are required. This is a silent behind the scenes process that
should ensure that the GPU does not get filled up.Handy for mobile devices!
This property only affects WebGL.Properties:
Name Type Description AUTOnumber Garbage collection will happen periodically automatically
MANUALnumber Garbage collection will need to be called manually
-
staticPIXI.loader
-
A premade instance of the loader that can be used to load resources.
Properties:
Type Description PIXI.loaders.Loader -
static,constantPIXI.MIPMAP_TEXTURES
-
- Deprecated
- since version 4.2.0
- See:
-
static,constantPIXI.PRECISIONobject
-
Constants that specify float precision in shaders.
Properties:
Name Type Default Description LOWstring 'lowp' MEDIUMstring 'mediump' HIGHstring 'highp' -
static,constantPIXI.RENDERER_TYPEobject
-
Constant to identify the Renderer Type.
Properties:
Name Type Description UNKNOWNnumber Unknown render type.
WEBGLnumber WebGL render type.
CANVASnumber Canvas render type.
-
static,constantPIXI.RESOLUTION
-
- Deprecated
- since version 4.2.0
- See:
-
static,constantPIXI.RETINA_PREFIX
-
- Deprecated
- since version 4.2.0
- See:
-
static,constantPIXI.SCALE_MODESobject
-
The scale modes that are supported by pixi.
The PIXI.settings.SCALE_MODE scale mode affects the default scaling mode of future operations.
It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.Properties:
Name Type Description LINEARnumber Smooth scaling
NEARESTnumber Pixelating scaling
-
static,constantPIXI.SHAPESobject
-
Constants that identify shapes, mainly to prevent
instanceofcalls.Properties:
Name Type Description POLYnumber Polygon
RECTnumber Rectangle
CIRCnumber Circle
ELIPnumber Ellipse
RRECnumber Rounded Rectangle
-
static,constantPIXI.SPRITE_BATCH_SIZE
-
- Deprecated
- since version 4.2.0
- See:
-
static,constantPIXI.SPRITE_MAX_TEXTURES
-
- Deprecated
- since version 4.2.0
- See:
-
static,constantPIXI.SVG_SIZERegExp string
-
Regexp for SVG size.
Example
<svg width="100" height="100"></svg> -
static,constantPIXI.TARGET_FPMS
-
- Deprecated
- since version 4.2.0
- See:
-
static,constantPIXI.TEXT_GRADIENTobject
-
Constants that define the type of gradient on text.
Properties:
Name Type Description LINEAR_VERTICALnumber Vertical gradient
LINEAR_HORIZONTALnumber Linear gradient
-
static,constantPIXI.TRANSFORM_MODEobject
-
Constants that specify the transform type.
Properties:
Name Type Description STATICnumber DYNAMICnumber -
static,constantPIXI.VERSIONstring
-
String of the current PIXI version.
-
static,constantPIXI.WRAP_MODESobject
-
The wrap modes that are supported by pixi.
The PIXI.settings.WRAP_MODE wrap mode affects the default wraping mode of future operations.
It can be re-assigned to either CLAMP or REPEAT, depending upon suitability.
If the texture is non power of two then clamp will be used regardless as webGL can
only use REPEAT if the texture is po2.This property only affects WebGL.
Properties:
Name Type Description CLAMPnumber The textures uvs are clamped
REPEATnumber The texture uvs tile and repeat
MIRRORED_REPEATnumber The texture uvs tile and repeat with mirroring
Methods
-
staticPIXI.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