MeshDataBuilder

A builder for MeshData.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class FaceVertex(val positionIndex: Int, val texCoordIndex: Int, val normalIndex: Int)

Indices for a single face vertex.

Functions

Link copied to clipboard

Adds another face to the mesh.

Link copied to clipboard

Adds another normal vector to the mesh.

fun addNormal(coordinates: List<Float>): MeshDataBuilder

Adds another normal vector to the mesh.

Link copied to clipboard

Adds another texture coordinates to the mesh.

Adds another texture coordinates to the mesh.

Link copied to clipboard

Adds another vertex position to the mesh.

fun addVertex(coordinates: List<Float>): MeshDataBuilder

Adds another vertex position to the mesh.

Link copied to clipboard

Builds a container for the array buffers data related to a single mesh, without indices.