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

Function drawOnce

packages/melonjs/tests/sprite.spec.js:514–518  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

512 currentNormalMap: null,
513 };
514 const drawOnce = () => {
515 s.preDraw(stub);
516 s.draw(stub);
517 s.postDraw(stub);
518 };
519
520 drawOnce(); // frame 0 → sx 0
521 s.update(100);

Callers 1

sprite.spec.jsFile · 0.70

Calls 3

preDrawMethod · 0.45
drawMethod · 0.45
postDrawMethod · 0.45

Tested by

no test coverage detected