@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
14 lines • 759 B
TypeScript
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" | "less" | "lessOrEqual", WebglDepthOptions>>;
export declare function webglDepthSet(gl: WebGL2RenderingContext, depth: WebglDepthOptions): void;
export declare function webglDepthGet(gl: WebGL2RenderingContext): WebglDepthOptions;
export declare function webglDepthExec(gl: WebGL2RenderingContext, depth: WebglDepthOptions, action: () => void): void;
export declare function webglDebugDepth(gl: WebGL2RenderingContext, caption?: string): void;
//# sourceMappingURL=depth.d.ts.map