- Matter.RenderPixi
- Methods
- Item Index
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
render
RenderPixi
body
Body
Returns
PIXI.Graphicsgraphics
@ src/render/RenderPixi.js:432
Matter.RenderPixi._createBodySprite
(render, body)
→ PIXI.Spritedeprecatedprivate
Creates a body sprite
Parameters
render
RenderPixi
body
Body
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
render
RenderPixi
imagePath
String
Returns
PIXI.Texturetexture
@ src/render/RenderPixi.js:497
Matter.RenderPixi.body
(engine, body)
deprecated
Description
Parameters
engine
Engine
body
Body
@ src/render/RenderPixi.js:356
Matter.RenderPixi.clear
(render)
deprecated
Clears the scene graph
Parameters
render
RenderPixi
@ src/render/RenderPixi.js:154
Matter.RenderPixi.constraint
(engine, constraint)
deprecated
Description
Parameters
engine
Engine
constraint
Constraint
@ src/render/RenderPixi.js:304
Matter.RenderPixi.create
(options)
→ RenderPixideprecated
Creates a new Pixi.js WebGL renderer
Parameters
options
Object
Returns
RenderPixiA new renderer
Matter.RenderPixi.run
(render)
deprecated
Continuously updates the render canvas on the requestAnimationFrame
event.
Parameters
render
Render
@ src/render/RenderPixi.js:131
Matter.RenderPixi.setBackground
(render, background)
deprecated
Sets the background of the canvas
Parameters
render
RenderPixi
background
String
@ 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
render
Render
@ src/render/RenderPixi.js:144
Matter.RenderPixi.world
(engine)
deprecated
Description
Parameters
engine
Engine
@ src/render/RenderPixi.js:233
Item Index
Methods
- _createBodyPrimitivedeprecated
- _createBodySpritedeprecated
- _getTexturedeprecated
- bodydeprecated
- cleardeprecated
- constraintdeprecated
- createdeprecated
- rundeprecated
- setBackgrounddeprecated
- stopdeprecated
- worlddeprecated