Matter.RenderPixi

Defined in: src/render/RenderPixi.js:1

Deprecated: the Matter.RenderPixi module will soon be removed from the Matter.js core. It will likely be moved to its own repository (but maintenance will be limited).

The Matter.RenderPixi module is an example renderer using pixi.js. See also Matter.Render for a canvas based renderer.

Methods

Matter.RenderPixi._createBodyPrimitive

(render, body)

→ PIXI.Graphicsdeprecatedprivate

Creates a body primitive

Parameters

Returns

PIXI.Graphicsgraphics

@ src/render/RenderPixi.js:432

Matter.RenderPixi._createBodySprite

(render, body)

→ PIXI.Spritedeprecatedprivate

Creates a body sprite

Parameters

Returns

PIXI.Spritesprite

@ src/render/RenderPixi.js:411

Matter.RenderPixi._getTexture

(render, imagePath)

→ PIXI.Texturedeprecatedprivate

Gets the requested texture (a PIXI.Texture) via its path

Parameters

Returns

PIXI.Texturetexture

@ src/render/RenderPixi.js:497

Matter.RenderPixi.body

(engine, body)

deprecated

Description

Parameters

@ src/render/RenderPixi.js:356

Matter.RenderPixi.clear

(render)

deprecated

Clears the scene graph

Parameters

@ src/render/RenderPixi.js:154

Matter.RenderPixi.constraint

(engine, constraint)

deprecated

Description

Parameters

@ src/render/RenderPixi.js:304

Matter.RenderPixi.create

(options)

RenderPixideprecated

Creates a new Pixi.js WebGL renderer

Parameters

Returns

RenderPixiA new renderer

@ src/render/RenderPixi.js:34

Matter.RenderPixi.run

(render)

deprecated

Continuously updates the render canvas on the requestAnimationFrame event.

Parameters

@ src/render/RenderPixi.js:131

Matter.RenderPixi.setBackground

(render, background)

deprecated

Sets the background of the canvas

Parameters

@ src/render/RenderPixi.js:197

Matter.RenderPixi.stop

(render)

deprecated

Ends execution of Render.run on the given render, by canceling the animation frame request event loop.

Parameters

@ src/render/RenderPixi.js:144

Matter.RenderPixi.world

(engine)

deprecated

Description

Parameters

@ src/render/RenderPixi.js:233

Item Index

Methods