Texture class
Constructors
-
Texture.new({required GltfRoot root, required TextureFormat format, required TextureFormat internalFormat, required GltfRef<
Sampler> ? sampler, required GltfRef<Image> source, required TextureTarget target, required TextureType type}) -
Texture.parse(GltfRoot root, Map<
String, Object?> map)
Properties
- format → TextureFormat
-
The texture's format. Defaults to
6408
(RGBA).final - hashCode → int
-
The hash code for this object.
no setterinherited
- internalFormat → TextureFormat
-
The texture's internal format. Defaults to
6408
(RGBA).final - root → GltfRoot
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sampler
→ GltfRef<
Sampler> ? -
The reference to the sampler used by this texture.
final
-
source
→ GltfRef<
Image> -
The reference to the image used by this texture.
final
- target → TextureTarget
-
The target that the WebGL texture should be bound to.
final
- type → TextureType
-
Texel datatype. Defaults to
5121
(UNSIGNED_BYTE).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFlameTexture(
) → Texture -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited