love-typescript-definitions
Version:
Write LÖVE 2D projects with TypeScript
16 lines (14 loc) • 483 B
TypeScript
declare module "love.graphics" {
type ImageSettings = {
/**
* True to make the image use mipmaps, false to disable them. Mipmaps will be automatically generated if the image isn't a compressed texture format.
* @default false
*/
mipmaps?: boolean;
/**
* True to treat the image's pixels as linear instead of sRGB, when gamma correct rendering is enabled. Most images are authored as sRGB.
* @default false
*/
linear?: boolean;
};
}