Quiz
- are the call back situations the same for animation as they were for texture loading?
Interesting question! Yes, they are similar in that we pass a function as an argument to another function, to be called at the appropriate time. They differ in the circumstances when they are called and what they do.
With texture mapping, our function is called when the texture is done loading (after the network I/O), and it builds a part of the scene that texture.
With animation, our function is called when the browser is done rendering the scene, and it adjusts the scene and renders it again.