TextureD class
Texture, tex data stored in GPU memory (VRAM)
- Inheritance
-
- Object
- RaylibStruct<
TextureD> - TextureD
Constructors
-
TextureD({StructPointer<
TextureD> ? op, int id = 0, int width = 0, int height = 0, int mipmaps = 0, PixelFormat format = .PIXELFORMAT_NONE}) - TextureD.zero()
-
factory
Properties
- $state → RaylibTempStructState
-
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
- format ↔ PixelFormat
-
Data format (PixelFormat type)
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int
-
Texture base height
getter/setter pair
- id ↔ int
-
OpenGL texture id
getter/setter pair
- mipmaps ↔ int
-
Mipmap levels, 1 by default
getter/setter pair
-
op
↔ StructPointer<
TextureD> ? -
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
- structIsDisposed → bool
-
Whether structMarkDisposed has been called on this instance.
no setterinherited
- structName → String
-
The Dart-side type name of this struct
no setterinherited
- width ↔ int
-
Texture base wwidthth
getter/setter pair
Methods
-
clone(
) → TextureD -
Returns a deep copy of this instance, preserving op if present.
override
-
copy(
) → TextureD -
Returns a deep copy of this instance without op.
inherited
-
getOp(
) → StructPointer< TextureD> -
Returns op, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
-
getOpAndDispose(
) → StructPointer< TextureD> -
Returns op and immediately disposes this struct.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDart(
TextureD o) → TextureD -
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.inherited -
structMarkDisposed(
) → void -
Marks this instance as disposed and clears op.
inherited
-
structOnOp(
void callback(StructPointer< TextureD> texture)) → void -
Calls
callbackwith op if it is set, otherwise no-ops.inherited -
structReadFrom(
MemoryPointer< RType> p) → void -
override
-
structSetTag(
String newTag) → TextureD -
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_format
→ StructValueField<
int, RInt> -
Field descriptor for format.
final
-
field_height
→ StructValueField<
int, RInt> -
Field descriptor for height.
final
-
field_id
→ StructValueField<
int, RUnsignedInt> -
Field descriptor for id.
final
-
field_mipmaps
→ StructValueField<
int, RInt> -
Field descriptor for mipmaps.
final
-
field_width
→ StructValueField<
int, RInt> -
Field descriptor for width.
final
-
struct
→ StructType<
TextureD> -
Describes the raw memory layout, construction, and pointer representation
of this struct type.
final
-
structLayout
→ StructLayout<
TextureField> -
Raw memory layout of this object.
final