Module MIPMAP_MODES-PIXI

include { ... };
type t =
| None
| Scissor
| Stencil
| Sprite
;

Mipmap filtering modes that are supported by pixi. The PIXI.settings.MIPMAP_TEXTURES affects default texture filtering. Mipmaps are generated for a baseTexture if its mipmap field is ON, or its POW2 and texture dimensions are powers of 2. Due to platform restriction, ON option will work like POW2 for webgl-1.

This property only affects WebGL.

include { ... };
let tToJs: t => int;
let tFromJs: int => option(t);
let none: int;

Mask is ignored

let scissor: int;

Scissor mask, rectangle on screen, cheap

let stencil: int;

Stencil mask, 1-bit, medium, works only if renderer supports stencil

let sprite: int;

Mask that uses SpriteMaskFilter, uses temporary RenderTexture