Menu - Top - Home - Donate to Me

H3DU.BufferedMesh

Back to documentation index.

H3DU.BufferedMesh(mesh, context)

Deprecated: This class is likely to become a private class. Use the H3DU.MeshBuffer class instead, which is not coupled to WebGL contexts.

A geometric mesh in the form of buffer objects.

Parameters

Methods

H3DU.BufferedMesh#dispose()

Deletes the vertex and index buffers associated with this object.

Return Value

This method doesn't return a value. (Type: void)

H3DU.BufferedMesh#draw(program)

Deprecated: Yes

Binds the buffers in this object to attributes according to their data format, and draws the elements in this mesh according to the data in its buffers.

Parameters

Return Value

This method doesn't return a value. (Type: void)

H3DU.BufferedMesh#getContext()

Deprecated: Yes

Returns the WebGL context associated with this object.

Return Value

Return value. (Type: WebGLRenderingContext | WebGL2RenderingContext)

H3DU.BufferedMesh#primitiveCount()

Gets the number of primitives (triangles, lines, and points) composed by all shapes in this mesh.

Return Value

Return value. (Type: number)

H3DU.BufferedMesh#vertexCount()

Gets the number of vertices composed by all shapes in this mesh.

Return Value

Return value. (Type: number)

Back to documentation index.