Newer
Older
pixi.js / packages / core / src / settings.js
@Dave Moore Dave Moore on 11 Nov 2018 537 bytes Updating jsdocs for settings (#5214)
import { settings } from '@pixi/settings';
import { ENV } from '@pixi/constants';

/**
 * The maximum support for using WebGL. If a device does not
 * support WebGL version, for instance WebGL 2, it will still
 * attempt to fallback support to WebGL 1. If you want to
 * explicitly remove feature support to target a more stable
 * baseline, prefer a lower environment.
 *
 * @static
 * @name PREFER_ENV
 * @memberof PIXI.settings
 * @type {number}
 * @default PIXI.ENV.WEBGL2
 */
settings.PREFER_ENV = ENV.WEBGL2;

export { settings };