Skip to content

Instantly share code, notes, and snippets.

@vincentdesmares
Created May 12, 2017 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentdesmares/4719ec10638153637502ad5180a52983 to your computer and use it in GitHub Desktop.
Save vincentdesmares/4719ec10638153637502ad5180a52983 to your computer and use it in GitHub Desktop.
gl.bindBuffer(gl.ARRAY_BUFFER, squareVerticesBuffer);
// gl.ARRAY_BUFFER will refer to squareVerticesBuffer
gl.bufferData(gl.ARRAY_BUFFER,vertices, gl.STATIC_DRAW);
// Fills the buffer bound to the gl.ARRAY_BUFFER variable, squareVerticesBuffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment