MCPcopy Create free account
hub / github.com/melonjs/melonJS / fullDraw

Function fullDraw

packages/melonjs/tests/sprite.spec.js:407–411  ·  view source on GitHub ↗
(sprite, stub)

Source from the content-addressed store, hash-verified

405
406 // run the full draw lifecycle the way the engine does
407 function fullDraw(sprite, stub) {
408 sprite.preDraw(stub);
409 sprite.draw(stub);
410 sprite.postDraw(stub);
411 }
412
413 it("Sprite without normalMap leaves currentNormalMap unchanged", () => {
414 const s = new Sprite(0, 0, {

Callers 1

sprite.spec.jsFile · 0.85

Calls 3

preDrawMethod · 0.45
drawMethod · 0.45
postDrawMethod · 0.45

Tested by

no test coverage detected