O'Reilly logo

WebGL Beginner's Guide by Brandon Jones, Diego Cantor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — enquiring on the state of buffers

Follow the given steps:

  1. Open the file ch2_StateMachine.html in the HTML5 browser of your preference.
  2. Scroll down to the initBuffers method. You will see something similar to the following screenshot:
    Time for action — enquiring on the state of buffers
  3. Pay attention to how we use the methods discussed in this section to retrieve and display information about the current state of the buffers.
  4. The information queried by the initBuffer function is shown at the bottom portion of the web page using updateInfo (if you look closely at runWebGLApp code you will see that updateInfo is called right after calling initBuffers).
  5. At the bottom of the web page (scroll ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required