Material class
Material, includes shader and maps
- Inheritance
-
- Object
- RaylibStruct<
Material> - Material
Constructors
-
Material({StructPointer<
Material> ? op, Shader? shader, List<MaterialMap> ? maps, List<double> ? params}) - Material.zero()
-
factory
Properties
- $state → RaylibTempStructState
-
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
maps
↔ StructLiveListStruct<
MaterialMap> -
Material maps array (MAX_MATERIAL_MAPS)
getter/setter pair
- mapsCount → int
-
Number of components in the maps buffer.
no setter
-
op
↔ StructPointer<
Material> ? -
The C-owned or RaylibTemp-owned typed pointer for this struct, if any.
getter/setter pairinherited
-
params
↔ StructLiveList<
double, RFloat> -
Material generic parameters (if required)
getter/setter pair
- paramsCount → int
-
Number of components in the params array.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shader ↔ Shader
-
Material shader
getter/setter pair
- structName → String
-
The Dart-side type name of this struct
no setterinherited
Methods
-
clone(
) → Material -
Returns a deep copy of this instance, preserving op if present.
override
-
copy(
) → Material -
Returns a deep copy of this instance without op.
inherited
-
getOp(
) → StructPointer< Material> -
Returns op, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
-
getOpAndDispose(
) → StructPointer< Material> -
Returns op and immediately disposes this struct.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDart(
Material o) → Material -
Copies the fields of
ointo 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
tempunderkeyas needed.override -
structDispose(
) → void -
Marks this instance as disposed.
inherited
-
structOnOp(
void callback(StructPointer< Material> p)) → void -
Calls
callbackwith op if it is set, otherwise no-ops.inherited -
structReadFrom(
MemoryPointer< RType> p) → void -
override
-
structSetTag(
String newTag) → Material -
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
- BASE_mapsCount → int
-
Number of components in the maps buffer.
no setter
- BASE_paramsCount → int
-
Number of components in the params array.
no setter
-
field_maps
→ StructPointerValueField<
List< MaterialMap> , RArray<RStruct> > -
Field descriptor for maps.
final
-
field_params
→ StructValueField<
List< double> , RArray<RFloat> > -
Field descriptor for params.
final
-
field_shader
→ StructValueField<
Shader, RStruct> -
Field descriptor for shader.
final
-
struct
→ StructType<
Material> -
Describes the raw memory layout, construction, and pointer representation
of this struct type.
final
-
structLayout
→ StructLayout<
MaterialField> -
Raw memory layout of this object.
final