Creates a new Mesh and uploads the geometry data to the GPU.
The WebGL context.
The geometry data to upload.
The number of elements (indices or vertices) to draw.
The element buffer object (indices).
The GL data type of the indices (e.g., UNSIGNED_SHORT or UNSIGNED_INT).
Whether this mesh uses indices for drawing.
The normal buffer object.
The tangent buffer object.
The texture coordinate buffer object.
The vertex buffer object.
The wireframe element buffer object.
The number of wireframe elements.
The GL data type of the wireframe indices.
Binds the buffers and sets the vertex attributes.
The location of the position attribute.
The location of the normal attribute.
The location of the UV attribute.
The location of the tangent attribute.
Draws the mesh using the appropriate GL call.
The draw mode (e.g. TRIANGLES, LINES).
Updates the GPU buffers with new geometry data. Currently updates vertices, normals and tangents.
The new geometry data.
Wrapper for WebGL vertex and index buffers. Handles both indexed and non-indexed geometry.