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

Method postDraw

packages/melonjs/src/renderable/sprite.js:759–765  ·  view source on GitHub ↗

* restore the rendering context after drawing this sprite (automatically called by melonJS). * @param {Renderer} renderer - a renderer instance

(renderer)

Source from the content-addressed store, hash-verified

757 * @param {Renderer} renderer - a renderer instance
758 */
759 postDraw(renderer) {
760 // Clear the slot so a subsequent un-lit sprite isn't accidentally lit.
761 if (this._normalMap !== null) {
762 renderer.currentNormalMap = null;
763 }
764 super.postDraw(renderer);
765 }
766
767 /**
768 * draw this sprite (automatically called by melonJS)

Callers 14

drawMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
fullDrawFunction · 0.45
drawOnceFunction · 0.45
drawOnceFunction · 0.45
renderedVerticesFunction · 0.45
drawFullFunction · 0.45
firstVertexWithFlagFunction · 0.45
renderable.spec.jsFile · 0.45
clipRect.spec.jsFile · 0.45

Calls

no outgoing calls

Tested by 6

fullDrawFunction · 0.36
drawOnceFunction · 0.36
drawOnceFunction · 0.36
renderedVerticesFunction · 0.36
drawFullFunction · 0.36
firstVertexWithFlagFunction · 0.36