TextureRegion class final

A box of texels in one mip level: a rectangle of width by height from (x, y) at the top left, across depthOrArrayLayers layers (or 3D slices) from z.

Annotations
  • @immutable

Constructors

TextureRegion({int x = 0, int y = 0, int z = 0, required int width, required int height, int depthOrArrayLayers = 1})
const

Properties

depthOrArrayLayers → int
final
hashCode → int
The hash code for this object.
no setteroverride
height → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
final
x → int
final
y → int
final
z → int
The first layer, cube face (layer index × 6 + face in a cube array) or 3D slice.
final

Methods

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

Operators

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