Classes
- AbstractFilter
- AccessibilityManager
- BaseTexture
- BlendModeManager
- CanvasBuffer
- CanvasGraphics
- CanvasMaskManager
- CanvasRenderer
- CanvasTinter
- Circle
- ComplexPrimitiveShader
- Container
- DisplayObject
- Ellipse
- FilterManager
- FXAAFilter
- Graphics
- GraphicsData
- MaskManager
- Matrix
- ObjectRenderer
- ParticleContainer
- ParticleShader
- Point
- Polygon
- PrimitiveShader
- Quad
- Rectangle
- RenderTarget
- RenderTexture
- RoundedRectangle
- Shader
- ShaderManager
- Sprite
- SpriteMaskFilter
- StencilMaskStack
- SystemRenderer
- Text
- Texture
- TextureShader
- VideoBaseTexture
- WebGLManager
- WebGLMaskManager
- WebGLRenderer
Namespaces
Members
-
static,constantPIXI.BLEND_MODES
-
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 BLEND_MODESobject 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.DEFAULT_RENDER_OPTIONS
-
The default render options if none are supplied to PIXI.WebGLRenderer
or PIXI.CanvasRenderer.Properties:
Name Type Description DEFAULT_RENDER_OPTIONSobject Properties
Name Type Default Description viewHTMLCanvasElement null transparentboolean false antialiasboolean false forceFXAAboolean false preserveDrawingBufferboolean false resolutionnumber 1 backgroundColornumber 0x000000 clearBeforeRenderboolean true autoResizeboolean false -
static,constantPIXI.DEG_TO_RAD
-
Properties:
Name Type Description DEG_TO_RADNumber Constant conversion factor for converting degrees to radians
-
static,constantPIXI.DRAW_MODES
-
Various webgl draw modes. These can be used to specify which GL drawMode to use
under certain situations and renderers.Properties:
Name Type Description DRAW_MODESobject Properties
Name Type Description POINTSnumber LINESnumber LINE_LOOPnumber LINE_STRIPnumber TRIANGLESnumber TRIANGLE_STRIPnumber TRIANGLE_FANnumber -
staticPIXI.loader
-
A premade instance of the loader that can be used to loader resources.
Properties:
Type Description PIXI.loaders.Loader -
static,constantPIXI.PI_2
-
Properties:
Name Type Description PI_2number Two Pi
-
static,constantPIXI.RAD_TO_DEG
-
Properties:
Name Type Description RAD_TO_DEGnumber Constant conversion factor for converting radians to degrees
-
static,constantPIXI.RENDERER_TYPE
-
Constant to identify the Renderer Type.
Properties:
Name Type Description RENDERER_TYPEobject Properties
Name Type Description UNKNOWNnumber WEBGLnumber CANVASnumber -
static,constantPIXI.RETINA_PREFIX
-
The prefix that denotes a URL is for a retina asset
Properties:
Name Type Description RETINA_PREFIXstring -
static,constantPIXI.SCALE_MODES
-
The scale modes that are supported by pixi.
The DEFAULT 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 SCALE_MODESobject Properties
Name Type Default Description DEFAULTnumber LINEAR LINEARnumber Smooth scaling
NEARESTnumber Pixelating scaling
-
static,constantPIXI.SHAPES
-
Constants that identify shapes, mainly to prevent
instanceofcalls.Properties:
Name Type Description SHAPESobject Properties
Name Type Default Description POLYobject 0 RECTobject 1 CIRCobject 2 ELIPobject 3 RRECobject 4 -
static,constantPIXI.TARGET_FPMS
-
Target frames per millisecond.
Properties:
Name Type Default Description TARGET_FPMSnumber 0.06 -
static,constantPIXI.VERSION
-
String of the current PIXI version
Properties:
Name Type Description VERSIONstring
Methods
-
staticPIXI.autoDetectRenderer(width, height, options, noWebGL){WebGLRenderer|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 the width of the renderers view
heightnumber 600 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 of the renderer, retina would be 2
noWebGLboolean false optional prevents selection of WebGL renderer, even if such is present
Returns:
Type Description WebGLRenderer | CanvasRenderer Returns WebGL renderer if available, otherwise CanvasRenderer