dist/melonjs.js
function setProjection(w, h) {
         this.flush();
         this.gl.viewport(0, 0, w, h);
         this.uMatrix.setTransform(2 / w, 0, 0, 0, -2 / h, 0, -1, 1, 1);
       }
function setProjection(w, h) {
         this.flush();
         this.gl.viewport(0, 0, w, h);
         this.uMatrix.setTransform(2 / w, 0, 0, 0, -2 / h, 0, -1, 1, 1);
       }
function setProjection ( w , h ) { this . flush ( ) ; this . gl . viewport ( 0 , 0 , w , h ) ; this . uMatrix . setTransform ( 2 / w , 0 , 0 , 0 , - 2 / h , 0 , - 1 , 1 , 1 ) ; }
Sets the projection matrix with the given size
@name setProjection
@memberOf me.WebGLRenderer.Compositor
@function
@param {Number} w WebGL Canvas width
@param {Number} h WebGL Canvas height
Sets the projection matrix with the given size