MeshD class

Inheritance
Mixed-in types

Constructors

MeshD({WasmStructPointer<MeshD>? originalPointer, int vertexCount = 0, int triangleCount = 0, int boneCount = 0, List<double>? vertices, List<double>? texcoords, List<double>? texcoords2, List<double>? normals, List<double>? tangents, List<int>? colors, List<int>? indices, List<double>? animVertices, List<double>? animNormals, List<int>? boneIds, List<double>? boneWeights, List<MatrixD>? boneMatrices, int vaoId = 0, List<int>? vboId})
MeshD.zero()
factory

Properties

$state RaylibTempStructState
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
animNormals RaylibLiveList<double>
Animated normals (after bones transformations)
getter/setter pairoverride
animNormalsCount int
Expected length of animNormals.
no setterinherited
animVertices RaylibLiveList<double>
Animated vertex positions (after bones transformations)
getter/setter pairoverride
animVerticesCount int
Expected length of animVertices.
no setterinherited
boneCount int
Number of bones
getter/setter pairoverride
boneIds RaylibLiveList<int>
Vertex bone ids, max 255 bone ids, up to 4 bones influence by vertex (skinning) (shader-location = 6)
getter/setter pairoverride
boneIdsCount int
Expected length of boneIds.
no setterinherited
boneMatrices RaylibLiveList<MatrixD>
Bones animated transformation matrices
getter/setter pairoverride
boneMatricesCount int
Expected length of boneMatrices.
no setterinherited
boneWeights RaylibLiveList<double>
Vertex bone weight, up to 4 bones influence by vertex (skinning) (shader-location = 7)
getter/setter pairoverride
boneWeightsCount int
Expected length of boneWeights.
no setterinherited
colors RaylibLiveList<int>
Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)
getter/setter pairoverride
colorsCount int
Expected length of colors.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
indices RaylibLiveList<int>
Vertex indices (in case vertex data comes indexed)
getter/setter pairoverride
indicesCount int
Expected length of indices.
no setterinherited
normals RaylibLiveList<double>
Vertex normals (XYZ - 3 components per vertex) (shader-location = 2)
getter/setter pairoverride
normalsCount int
Expected length of normals.
no setterinherited
originalPointer WasmStructPointer<MeshD>?
The C-owned or RaylibTemp-owned native pointer for this struct, if any.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
structIsDisposed bool
Whether structMarkDisposed has been called on this instance.
no setterinherited
structName String
The Dart-side type name of this struct
no setterinherited
structRequiresOriginalPointer bool
Whether this struct requires an originalPointer to function correctly.
no setterinherited
tangents RaylibLiveList<double>
Vertex tangents (XYZW - 4 components per vertex) (shader-location = 4)
getter/setter pairoverride
tangentsCount int
Expected length of tangents.
no setterinherited
texcoords RaylibLiveList<double>
Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
getter/setter pairoverride
texcoords2 RaylibLiveList<double>
Vertex texture second coordinates (UV - 2 components per vertex) (shader-location = 5)
getter/setter pairoverride
texcoords2Count int
Expected length of texcoords2.
no setterinherited
texcoordsCount int
Expected length of texcoords.
no setterinherited
triangleCount int
Number of triangles stored (indexed or not)
getter/setter pairoverride
vaoId int
OpenGL Vertex Array Object id
getter/setter pairoverride
vboId RaylibLiveList<int>
OpenGL Vertex Buffer Objects id (default vertex data)
getter/setter pairoverride
vboIdCount int
Expected length of vboId.
no setterinherited
vertexCount int
Number of vertices stored in arrays
getter/setter pairoverride
vertices RaylibLiveList<double>
Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
getter/setter pairoverride
verticesCount int
Expected length of vertices.
no setterinherited
wasmByteSize int
no setteroverride

Methods

clone() MeshD
Returns a deep copy of this instance, preserving RaylibStructBase.originalPointer if present.
override
copy() MeshD
Returns a deep copy of this instance without RaylibStructBase.originalPointer.
inherited
getOriginalPointer() WasmStructPointer<MeshD>
Returns originalPointer, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
getOriginalPointerAndDispose() WasmStructPointer<MeshD>
Returns originalPointer and immediately calls structMarkDisposed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setD(MeshD o) MeshD
Copies the fields of o into this instance and returns this.
override
signature() String
Returns a human-readable representation of this struct.
inherited
structAllocateInto(RaylibTemp temp, WasmStructPointer<MeshD> p, String key) → void
Allocates nested pointers into temp under key as needed.
override
structMarkDisposed() → void
Marks this instance as disposed and clears originalPointer.
inherited
structOnOp(void callback(WasmStructPointer<MeshD> p)) → void
Calls callback with originalPointer if it is set, otherwise no-ops.
inherited
structReadFrom(WasmStructPointer<MeshD> p) → void
Reads all fields from the memory at p.
inherited
structSetTag(String newTag) MeshD
Sets RaylibTempStructState.tag to newTag and returns this for chaining.
inherited
structSyncFromMemory() → void
Syncs all fields from the memory. Requires originalPointer.
inherited
structSyncInto(RaylibTemp temp, WasmStructPointer<MeshD> p, String key) → void
Syncs Dart-side fields into the already-allocated native pointer p. Defaults to structWriteInto.
inherited
structSyncToMemory() → void
Syncs all fields to the memory. Requires originalPointer.
inherited
structWriteInto(WasmStructPointer<MeshD> p) → void
Writes all fields into the memory at p.
inherited
toString() String
A string representation of this object.
inherited
wasmReader([int? offset]) WasmReader
inherited
wasmReaderOr(int address) WasmReader
inherited
wasmReadFrom(WasmReader reader) → void
override
wasmWriteInto(WasmWriter writer) → void
override
wasmWriter([int? offset]) WasmWriter
inherited
wasmWriterOr(int address) WasmReader
inherited

Operators

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

Static Properties

byteSize int
final