@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
25 lines • 1.12 kB
TypeScript
import type { WebglParams } from "../../context/webgl-params";
import { WebglEnumBlendEquation, WebglEnumBlendFunction } from "../../types";
export interface WebglBlendOptions {
enabled: boolean;
equationColor: WebglEnumBlendEquation;
equationAlpha: WebglEnumBlendEquation;
functionColorSrc: WebglEnumBlendFunction;
functionColorDst: WebglEnumBlendFunction;
functionAlphaSrc: WebglEnumBlendFunction;
functionAlphaDst: WebglEnumBlendFunction;
}
export declare const webglPresetBlend: Readonly<Record<"off" | "alpha" | "add" | "max" | "min" | "multiply" | "premultipliedAlpha", WebglBlendOptions>>;
export declare function webglBlendSet(context: {
webglParams: WebglParams;
}, blend: WebglBlendOptions): void;
export declare function webglBlendGet(context: {
webglParams: WebglParams;
}): WebglBlendOptions;
export declare function webglBlendExec(context: {
webglParams: WebglParams;
}, blend: WebglBlendOptions, action: () => void): void;
export declare function webglDebugBlend(context: {
webglParams: WebglParams;
}, caption?: string): void;
//# sourceMappingURL=blend.d.ts.map