Mesh

A mesh.

Types

Link copied to clipboard
interface Factory

A factory for meshes.

Functions

Link copied to clipboard
abstract fun dispose(gl: GlimpseAdapter)

Disposes this object and its resources using given OpenGL adapter.

Link copied to clipboard
abstract fun draw(gl: GlimpseAdapter)

Tells the given OpenGL adapter to draw this mesh.

Link copied to clipboard
abstract fun useBuffer(gl: GlimpseAdapter, bufferIndex: Int)

Tells the given OpenGL adapter to use a buffer at a given bufferIndex.

Properties

Link copied to clipboard
abstract val buffers: List<Buffer>

Buffers of vertex data.

Link copied to clipboard
abstract val isDisposed: Boolean

true if this object has been disposed.

Link copied to clipboard
abstract val vertexCount: Int

Number of vertices drawn for the mesh.