Model class

Model, meshes, materials and animation data

Inheritance

Constructors

Model({StructPointer<Model>? op, Matrix? transform, List<Mesh>? meshes, List<Material>? materials, List<int>? meshMaterial, ModelSkeleton? skeleton, List<Transform>? currentPose, List<Matrix>? boneMatrices})
Model.zero()
factory

Properties

$state → RaylibTempStructState
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
boneMatrices ↔ StructLiveListStruct<Matrix>
Bones animated transformation matrices
getter/setter pair
currentPose ↔ StructLiveListStruct<Transform>
Current animation pose (Transform[])
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
materialCount ↔ int
Number of materials
getter/setter pair
materials ↔ StructLiveListStruct<Material>
Materials array
getter/setter pair
meshCount ↔ int
Number of meshes
getter/setter pair
meshes ↔ StructLiveListStruct<Mesh>
Meshes array
getter/setter pair
meshMaterial ↔ StructLiveList<int, RInt>
Mesh material number
getter/setter pair
op ↔ StructPointer<Model>?
The C-owned or RaylibTemp-owned typed pointer for this struct, if any.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skeleton ↔ ModelSkeleton
Skeleton for animation
getter/setter pair
structName → String
The Dart-side type name of this struct
no setterinherited
transform ↔ Matrix
Local transform matrix
getter/setter pair

Methods

clone() → Model
Returns a deep copy of this instance, preserving op if present.
override
copy() → Model
Returns a deep copy of this instance without op.
inherited
getOp() → StructPointer<Model>
Returns op, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
getOpAndDispose() → StructPointer<Model>
Returns op and immediately disposes this struct.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDart(Model o) → Model
Copies the fields of o into this instance.
override
signature() → String
Returns a human-readable representation of this struct.
override
structAllocateInto(RaylibTemp<RaylibBase> temp, MemoryPointer<RType> p, String key) → void
Allocates nested pointers into temp under key as needed.
override
structDispose() → void
Marks this instance as disposed.
inherited
structOnOp(void callback(StructPointer<Model> p)) → void
Calls callback with op if it is set, otherwise no-ops.
inherited
structReadFrom(MemoryPointer<RType> p) → void
override
structSetTag(String newTag) → Model
Sets RaylibTempStructState.tag to newTag.
inherited
structSyncFromMemory() → void
Syncs all fields from the memory. Requires op.
inherited
structSyncToMemory() → void
Syncs all fields to the memory. Requires op.
inherited
structWriteInto(MemoryPointer<RType> p) → void
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

field_boneMatrices → StructPointerArrayField<Matrix, RStruct>
Field descriptor for boneMatrices.
final
field_currentPose → StructPointerArrayField<Transform, RStruct>
Field descriptor for currentPose.
final
field_materialCount → StructValueField<int, RInt>
Field descriptor for materialCount.
final
field_materials → StructPointerArrayField<Material, RStruct>
Field descriptor for materials.
final
field_meshCount → StructValueField<int, RInt>
Field descriptor for meshCount.
final
field_meshes → StructPointerArrayField<Mesh, RStruct>
Field descriptor for meshes.
final
field_meshMaterial → StructPointerArrayField<int, RInt>
Field descriptor for meshMaterial.
final
field_skeleton → StructValueField<ModelSkeleton, RStruct>
Field descriptor for skeleton.
final
field_transform → StructValueField<Matrix, RStruct>
Field descriptor for transform.
final
struct → StructType<Model>
Describes the raw memory layout, construction, and pointer representation of this struct type.
final
structLayout → StructLayout<ModelField>
Raw memory layout of this object.
final