createImageTexture method
Creates a GTexture
object from the rendered image of the object
asynchronously. You can optionally provide a resolution
value, which
defaults to 1.
Implementation
Future<GTexture> createImageTexture([
bool adjustOffset = true,
double resolution = 1,
]) async {
final img = await createImage(adjustOffset, resolution);
return GTexture.fromImage(img, resolution);
}