TextureBinding class final
A reference from a material to one of the document's images.
Always an index, never a path: glTF addresses images by index while OBJ uses relative filenames, and normalizing to an index in the decoder is what lets consumers upload images without knowing which format they came from.
Constructors
- TextureBinding({required int imageIndex, int texCoordSet = 0, TextureSampling sampling = const TextureSampling(), TextureTransform? transform})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageIndex → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampling → TextureSampling
-
final
- texCoordSet → int
-
Which texcoord set to sample with. Only set 0 is decoded today.
final
- transform → TextureTransform?
-
KHR_texture_transform's own offset/scale/rotation, when the source file named the extension —fmt-19's own row. Null for a texture info with no such extension, which is every file before this one existed.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited