mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-14 00:38:41 -04:00
Updated Rendering (markdown)
parent
d82791d015
commit
1d68b07d78
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ When you use `Engine.create(element)` a `Matter.Render` instance will be created
|
|||
|
||||
Following this calling `Engine.run(engine)` will spawn the built in game loop routine, which will automatically manage updating the engine and calling the renderer at the appropriate times.
|
||||
|
||||
By default this renderer will only show bodies as wireframes (outlines). This is useful for testing and debugging, but to enable full solid rendering (and sprites if you are using them) you must set `render.options.wirefames = false`.
|
||||
|
||||
#### Matter.RenderPixi
|
||||
|
||||
An alternate renderer [Matter.RenderPixi](http://brm.io/matter-js-docs/classes/RenderPixi.html) is provided as an example of using [Pixi.js](http://www.pixijs.com/) to render a world using WebGL and a scene graph. The features available should match those of `Matter.Render` although sometimes there may be implementation differences.
|
||||
|
|
Loading…
Add table
Reference in a new issue