Created
May 14, 2014 18:16
-
-
Save haeric/5d1e273b4ee1aa84776d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( updateBuffers ) { | |
setupVertexAttributes( material, programAttributes, geometryAttributes, startIndex ); | |
_gl.bindBuffer( _gl.ELEMENT_ARRAY_BUFFER, index.buffer ); | |
} | |
// render indexed triangles | |
_gl.drawElements( _gl.TRIANGLES, offsets[ i ].count, type, offsets[ i ].start * size ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment