MeshData

Mesh data as stored in Inochi2D's file format.

Constructors

this
this(vec2[] vertices, vec2[] uvs, uint[] indices)

Constructs a new MeshData from slices of mesh data.

this
this(Mesh mesh)

Constructs a new MeshData from a refcounted mesh.

Members

Functions

free
void free()
Undocumented in source. Be warned that the author may not have intended to support it.
onDeserialize
void onDeserialize(DataNode object, ModelState state)

Deserialization handler

onSerialize
void onSerialize(DataNode object)

Serialization handler

Variables

indices
uint[] indices;

Indices in the mesh

uvs
vec2[] uvs;

Base uvs

vertices
vec2[] vertices;

Vertices in the mesh

Meta