Image.generateMipmaps

Generates mipmaps for the image. Mipmaps are precalculated lower-resolution copies of the image that are automatically used if the image needs to be scaled down when rendered. They help improve image quality and performance when rendering. This method 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