Module mesh

Source
Expand description

The definitions of Vertex, Mesh and their implementations.

Structs§

Mesh
An indiced Mesh, stored along with it’s vertex array, index array and vertex buffer.
Vertex
The Vertex struct holds the data that will be later sent to WebGL in a GL::ARRAY_BUFFER. It consists of position and color vectors, and UV co-ordinates.