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

Method setProjection

packages/melonjs/src/video/renderer.js:765–767  ·  view source on GitHub ↗

* set/change the current projection matrix (GPU renderers only — * the Canvas renderer applies projection via the 2D context's transform stack). * @param {Matrix3d} matrix

(matrix)

Source from the content-addressed store, hash-verified

763 * @param {Matrix3d} matrix
764 */
765 setProjection(matrix) {
766 this.projectionMatrix.copy(matrix);
767 }
768
769 /**
770 * stroke the given shape

Callers 8

drawMethod · 0.45
drawMethod · 0.45
setupOrthoProjectionFunction · 0.45
setupOrthoFunction · 0.45
setupOrthoFunction · 0.45
strokeMeshWireframeFunction · 0.45

Calls 1

copyMethod · 0.45

Tested by 3

setupOrthoProjectionFunction · 0.36
setupOrthoFunction · 0.36
setupOrthoFunction · 0.36