object PIXI extends Object
Pixi.js — A 2D JavaScript Renderer
The aim of this project is to provide a fast lightweight 2D library that works across all devices. The Pixi renderer allows everyone to enjoy the power of hardware acceleration without prior knowledge of WebGL. Also, it's fast. Really fast.
If you want to keep up to date with the latest pixi.js news then feel free to follow us on twitter (@doormat23, and @rolnaaba) and we will keep you posted! You can also check back on our site as any breakthroughs will be posted up there too!
- Annotations
- @native() @JSName( "PIXI" )
- Version
3.0
- See also
- Alphabetic
- By Inheritance
- PIXI
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type DisplayObject = pixijs.DisplayObject
- type DisplayObjectContainer = pixijs.DisplayObjectContainer
- type Matrix = pixijs.Matrix
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
PI_2: Double
Constant: Two Pi
-
val
RAD_TO_DEG: Double
Constant conversion factor for converting radians to degrees.
-
val
RETINA_PREFIX: String
The prefix that denotes a URL is for a retina asset.
-
val
TARGET_FPMS: Double
Target frames per millisecond.
-
val
VERSION: String
String of the current PIXI version
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
autoDetectRenderer(width: Double = js.native, height: Double = js.native, options: |[AutoDetectRendererOptions, RawOptions] = js.native, noWebGL: Boolean = js.native): AbstractRenderer
This helper function will automatically detect which renderer you should be using.
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 renderer.
- width
the width of the renderers view
- height
the height of the renderers view
- options
The optional renderer parameters
- noWebGL
prevents selection of WebGL renderer, even if such is present
- returns
WebGL renderer if available, otherwise CanvasRenderer
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
var
loader: Loader
A pre-made instance of the loader that can be used to loader resources.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
object
BLEND_MODES
extends Object
Various blend modes supported by PIXI.
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.
- Annotations
- @native() @JSName( "BLEND_MODES" )
-
object
DEFAULT_RENDER_OPTIONS
extends Object
The default render options if none are supplied to PIXI.WebGLRenderer or PIXI.CanvasRenderer.
The default render options if none are supplied to PIXI.WebGLRenderer or PIXI.CanvasRenderer.
- Annotations
- @native() @JSName( "DEFAULT_RENDER_OPTIONS" )
- See also
-
object
DRAW_MODES
extends Object
Various webgl draw modes.
Various webgl draw modes. These can be used to specify which GL drawMode to use under certain situations and renderers.
- Annotations
- @native() @JSName( "DRAW_MODES" )
-
object
RENDERER_TYPE
extends Object
Constant to identify the Renderer Type.
Constant to identify the Renderer Type.
- Annotations
- @native() @JSName( "RENDERER_TYPE" )
-
object
SCALE_MODES
extends Object
The scale modes that are supported by pixi.
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.
- Annotations
- @native() @JSName( "SCALE_MODES" )
-
object
SHAPES
extends Object
Constants that identify shapes, mainly to prevent instanceof calls.
Constants that identify shapes, mainly to prevent instanceof calls.
- Annotations
- @native() @JSName( "SHAPES" )
-
object
filters
extends Object
Filter implementations
Filter implementations
- Annotations
- @native() @JSName( "filters" )
-
object
loaders
extends Object
PIXI.loaders object
PIXI.loaders object
- Annotations
- @native() @JSName( "loaders" )
-
object
tickers
extends Object
- Annotations
- @native() @JSName( "tickers" )