Skip to content

Commit

Permalink
remove deprecated backwards compatibility render integration from Mat…
Browse files Browse the repository at this point in the history
…ter.Runner
  • Loading branch information
liabru committed Mar 21, 2021
1 parent 76bf80e commit 6805f85
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions src/core/Runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,31 +164,11 @@ var Common = require('./Common');

Events.trigger(runner, 'tick', event);

// if world has been modified, clear the render scene graph
if (engine.world.isModified
&& engine.render
&& engine.render.controller
&& engine.render.controller.clear) {
engine.render.controller.clear(engine.render); // back compatibility
}

// update
Events.trigger(runner, 'beforeUpdate', event);
Engine.update(engine, delta, correction);
Events.trigger(runner, 'afterUpdate', event);

// render
// back compatibility
if (engine.render && engine.render.controller) {
Events.trigger(runner, 'beforeRender', event);
Events.trigger(engine, 'beforeRender', event); // back compatibility

engine.render.controller.world(engine.render);

Events.trigger(runner, 'afterRender', event);
Events.trigger(engine, 'afterRender', event); // back compatibility
}

Events.trigger(runner, 'afterTick', event);
};

Expand Down Expand Up @@ -268,28 +248,6 @@ var Common = require('./Common');
* @param {} event.name The name of the event
*/

/**
* Fired before rendering
*
* @event beforeRender
* @param {} event An event object
* @param {number} event.timestamp The engine.timing.timestamp of the event
* @param {} event.source The source object of the event
* @param {} event.name The name of the event
* @deprecated
*/

/**
* Fired after rendering
*
* @event afterRender
* @param {} event An event object
* @param {number} event.timestamp The engine.timing.timestamp of the event
* @param {} event.source The source object of the event
* @param {} event.name The name of the event
* @deprecated
*/

/*
*
* Properties Documentation
Expand Down

0 comments on commit 6805f85

Please sign in to comment.