Skip to content

Instantly share code, notes, and snippets.

@vincentdesmares
Created May 12, 2017 02:00
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/c4f70069c9c813980837ddd24cee9138 to your computer and use it in GitHub Desktop.
Save vincentdesmares/c4f70069c9c813980837ddd24cee9138 to your computer and use it in GitHub Desktop.
var option = gl.TRIANGLE_STRIP; // see above
var start = 0; // The first vertex to plot, in order provided in the buffer.
var count = 4; // The number of vertices to be rendered from the buffer
gl.drawArrays(option, start, count);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment