Texture constructor
Texture(
- ByteData sourceData, {
- required int width,
- required int height,
- 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,
});