I have a Element Array Buffer
var index_buffer = gl.createBuffer();
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, index_buffer);
gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new Uint16Array(indices), gl.STATIC_DRAW);
And I want to be able to see the length of the buffer, but index_buffer.length is undefined and there is no function in the WebGLBuffer type to get the length of items
How do I go about seeing how large it is?
UPDATE: Thanks to gman for pointing out that I was using this for debugging, don't try this if using otherwise, better ways of getting the info
indices.length?