Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

requestAnimationFrame without loss context angualar

protected animate() {
    requestAnimationFrame( this.animateCallback.callAnimate );

    this.mesh.rotation.x += 1;
    this.mesh.rotation.y += 1;

    this.renderer.render( this.scene, this.camera );

  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #requestAnimationFrame #loss #context #angualar
ADD COMMENT
Topic
Name
7+9 =