Mesh

interface Mesh

A mesh.

Types

Link copied to clipboard
interface Factory

A factory for meshes.

Functions

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

Tells the given OpenGL adapter to dispose all buffers defined for this mesh.

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 vertexCount: Int

Number of vertices drawn for the mesh.