MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / callback

Function callback

7DFPS/js/THREEx.WindowResize.js:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25*/
26THREEx.WindowResize = function(renderer, camera){
27 var callback = function(){
28 // notify the renderer of the size change
29 renderer.setSize( window.innerWidth, window.innerHeight );
30 // update the camera
31 camera.aspect = window.innerWidth / window.innerHeight;
32 camera.updateProjectionMatrix();
33 }
34 // bind the resize event
35 window.addEventListener('resize', callback, false);
36 // return .stop() the function to stop watching window resize

Callers 2

Three.jsFile · 0.70
traverse_json_hierarchyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected