(gl, attributes, elements, elementsType)
| 24748 | } |
| 24749 | |
| 24750 | function createVAO(gl, attributes, elements, elementsType) { |
| 24751 | var ext = gl.createVertexArray |
| 24752 | ? new ExtensionShim(gl) |
| 24753 | : gl.getExtension('OES_vertex_array_object') |
| 24754 | var vao |
| 24755 | |
| 24756 | if(ext) { |
| 24757 | vao = createVAONative(gl, ext) |
| 24758 | } else { |
| 24759 | vao = createVAOEmulated(gl) |
| 24760 | } |
| 24761 | vao.update(attributes, elements, elementsType) |
| 24762 | return vao |
| 24763 | } |
| 24764 | |
| 24765 | module.exports = createVAO |
| 24766 |
no test coverage detected
searching dependent graphs…