mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-30 10:20:52 -05:00
removed Render.clear (redundant)
This commit is contained in:
parent
01bc8132f1
commit
0a15d7d1b1
2 changed files with 1 additions and 11 deletions
|
@ -100,7 +100,7 @@ var Runner = {};
|
||||||
Events.trigger(engine, 'tick', event);
|
Events.trigger(engine, 'tick', event);
|
||||||
|
|
||||||
// if world has been modified, clear the render scene graph
|
// if world has been modified, clear the render scene graph
|
||||||
if (engine.world.isModified)
|
if (engine.world.isModified && engine.render.controller.clear)
|
||||||
engine.render.controller.clear(engine.render);
|
engine.render.controller.clear(engine.render);
|
||||||
|
|
||||||
// update
|
// update
|
||||||
|
|
|
@ -80,16 +80,6 @@ var Render = {};
|
||||||
return render;
|
return render;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Clears the renderer. In this implementation, this is a noop.
|
|
||||||
* @method clear
|
|
||||||
* @param {render} render
|
|
||||||
*/
|
|
||||||
Render.clear = function(render) {
|
|
||||||
// nothing required to clear this renderer implentation
|
|
||||||
// if a scene graph is required, clear it here (see RenderPixi.js)
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the pixel ratio of the renderer and updates the canvas.
|
* Sets the pixel ratio of the renderer and updates the canvas.
|
||||||
* To automatically detect the correct ratio, pass the string `'auto'` for `pixelRatio`.
|
* To automatically detect the correct ratio, pass the string `'auto'` for `pixelRatio`.
|
||||||
|
|
Loading…
Reference in a new issue