Image.generateMipmaps

Generates mipmaps for the image. Mipmaps are pre-calculated and lower resolution copies of the image. Mipmaps are automatically used if the image needs to be scaled down when rendered. This improves image quality and the performance of the rendering. Returns an error if the image is compressed, in a custom format or if the image's width/height is 0.

struct Image
@nogc nothrow
GodotError
generateMipmaps
(
in bool renormalize = false
)

Meta