UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

23 lines 947 B
import { WebglParams } from "../../context/webgl-params"; import { WebglEnumDepthFunction } from "../../types/webgl"; export interface WebglDepthOptions { enabled: boolean; func: WebglEnumDepthFunction; mask: boolean; rangeMin: number; rangeMax: number; } export declare const webglPresetDepth: Readonly<Record<"off" | "always" | "writeOnly" | "less" | "lessOrEqual" | "lessReadOnly" | "lessOrEqualReadOnly", WebglDepthOptions>>; export declare function webglDepthSet(context: { webglParams: WebglParams; }, depth: WebglDepthOptions): void; export declare function webglDepthGet(context: { webglParams: WebglParams; }): WebglDepthOptions; export declare function webglDepthExec(context: { webglParams: WebglParams; }, depth: WebglDepthOptions, action: () => void): void; export declare function webglDebugDepth(context: { webglParams: WebglParams; }, caption?: string): void; //# sourceMappingURL=depth.d.ts.map