Skip to content

Instantly share code, notes, and snippets.

@vincentdesmares
Created May 12, 2017 02:06
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/ff509074b88d523e4a5a69089227e35a to your computer and use it in GitHub Desktop.
Save vincentdesmares/ff509074b88d523e4a5a69089227e35a to your computer and use it in GitHub Desktop.
function buffer(vertices){
gl.bindBuffer(gl.ARRAY_BUFFER, squareVerticesBuffer);
gl.bufferData(gl.ARRAY_BUFFER, vertices, gl.STATIC_DRAW);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment