Texture constructor

Texture(
  1. ByteData sourceData, {
  2. required int width,
  3. required int height,
  4. PixelFormat format = PixelFormat.rgba8888,
})

Base texture Resource, represents an image/texture on the GPU.

Implementation

Texture(
  this.sourceData, {
  required this.width,
  required this.height,
  this.format = PixelFormat.rgba8888,
});