package.src.gl.depth_mode.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mapbox-gl Show documentation
Show all versions of mapbox-gl Show documentation
A WebGL interactive maps library
The newest version!
// @flow
import type {DepthFuncType, DepthMaskType, DepthRangeType} from './types';
const ALWAYS = 0x0207;
class DepthMode {
func: DepthFuncType;
mask: DepthMaskType;
range: DepthRangeType;
// DepthMask enums
static ReadOnly: boolean;
static ReadWrite: boolean;
constructor(depthFunc: DepthFuncType, depthMask: DepthMaskType, depthRange: DepthRangeType) {
this.func = depthFunc;
this.mask = depthMask;
this.range = depthRange;
}
static disabled: $ReadOnly;
}
DepthMode.ReadOnly = false;
DepthMode.ReadWrite = true;
DepthMode.disabled = new DepthMode(ALWAYS, DepthMode.ReadOnly, [0, 1]);
export default DepthMode;