Texture class abstract

Defines a texture object

Constructors

Texture.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future
Disposes the texture resources
generateMipmaps() Future
Generates mipmaps automatically for the texture
getDepth([int level = 0]) Future<int>
Returns the depth of the texture at the specified mipmap level (for 3D textures)
getFormat() Future<TextureFormat>
Returns the internal format of this texture
getHeight([int level = 0]) Future<int>
Returns the height of the texture at the specified mipmap level
getLevels() Future<int>
Returns the number of mipmap levels this texture has
getTarget() Future<TextureSamplerType>
Returns the sampler type of this texture
getWidth([int level = 0]) Future<int>
Returns the width of the texture at the specified mipmap level
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setExternalImage(dynamic externalImage) Future
Sets an external image (like a video or camera frame) as the texture source
setImage(int level, Uint8List buffer, int width, int height, PixelDataFormat format, PixelDataType type, {int depth = 1, int xOffset = 0, int yOffset = 0, int zOffset = 0}) Future<void>
Sets the image data for a 2D texture or a texture level
setLinearImage(covariant LinearImage image, PixelDataFormat format, PixelDataType type, {int level = 0}) Future
Sets the given image as the source data for this texture.
setSubImage(int level, int xOffset, int yOffset, int width, int height, Uint8List buffer, PixelDataFormat format, PixelDataType type) Future
Sets the image data for a region of a 2D texture
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited