Mesh

interface Mesh

A mesh.

Types

Factory
Link copied to clipboard
interface Factory

A factory for meshes.

Functions

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

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

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

Tells the given OpenGL adapter to draw this mesh.

useBuffer
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

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

Buffers of vertex data.

vertexCount
Link copied to clipboard
abstract val vertexCount: Int

Number of vertices drawn for the mesh.