@awayjs/stage
Version:
Stage for AwayJS
37 lines (36 loc) • 1.14 kB
JavaScript
import { Settings } from '../Settings';
export var ContextWebGLFlags = {
/**
* Preferred WebGL version for rendering
* @default 2
* @deprecated Use Settings.PREF_WEBGL_VERSION
*/
get PREF_VERSION() {
return Settings.PREF_WEBGL_VERSION;
},
set PREF_VERSION(v) {
Settings.PREF_WEBGL_VERSION = v !== 2 ? 1 : 2;
},
/**
* Preferred multisample for webgl2 on rendertargets.
* @deprecated Use Settings.ENABLE_MULTISAMPLE_TEXTURE
* @default true
*/
get PREF_MULTISAMPLE() {
return Settings.ENABLE_MULTISAMPLE_TEXTURE;
},
set PREF_MULTISAMPLE(v) {
Settings.ENABLE_MULTISAMPLE_TEXTURE = !!v;
},
/**
* Preferred mipmaps for textures
* @default ALL
*/
PREF_MIPMAP: 1 /* ContextWebGLPreference.ALL_TEXTURES */,
/**
* Preferred repeate wrapping for all type of textures, on webg1 will throw a warn for nPOT textures
* ContextWebGLPreference.POT_TEXTURES will allow only for POT textures on WebGL1
* @default ALL_TEXTURES
*/
PREF_REPEAT_WRAP: 1 /* ContextWebGLPreference.ALL_TEXTURES */
};