Mesh class

Mesh, vertex data and vao/vbo.

Constructors

Mesh(int triangleCount)
Mesh, vertex data and vao/vbo.
Mesh.fromRef(Mesh ref)
Mesh, vertex data and vao/vbo.

Properties

animNormals → PointerList<Float>
Animated normals (after bones transformations).
no setter
animVertices → PointerList<Float>
Animated vertex positions (after bones transformations).
no setter
boneIds → PointerList<Uint8>
Vertex bone ids, max 255 bone ids, up to 4 bones influence by vertex (skinning).
no setter
boneWeights → PointerList<Float>
Vertex bone weight, up to 4 bones influence by vertex (skinning).
no setter
colors → PointerList<Uint8>
Vertex colors (RGBA - 4 components per vertex).
no setter
hashCode int
The hash code for this object.
no setterinherited
indices → PointerList<Uint16>
Vertex indices (in case vertex data comes indexed).
no setter
normals → PointerList<Float>
Vertex normals (XYZ - 3 components per vertex).
no setter
pointer Pointer<Mesh>
Native pointer, used internally.
final
ref ↔ Mesh
Native reference.
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tangents → PointerList<Float>
Vertex tangents (XYZW - 4 components per vertex).
no setter
texcoords → PointerList<Float>
Vertex texture coordinates (UV - 2 components per vertex).
no setter
texcoords2 → PointerList<Float>
Vertex second texture coordinates (useful for lightmaps).
no setter
triangleCount int
Number of triangles stored (indexed or not).
getter/setter pair
vaoId int
OpenGL Vertex Array Object id.
no setter
vboId → PointerList<Uint32>
OpenGL Vertex Buffer Objects id (default vertex data).
no setter
vertexCount int
Number of vertices stored in arrays.
getter/setter pair
vertices → PointerList<Float>
Vertex position. (XYZ - 3 components per vertex).
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited