@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
16 lines • 935 B
TypeScript
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", WebglBlendOptions>>;
export declare function webglBlendSet(gl: WebGL2RenderingContext, blend: WebglBlendOptions): void;
export declare function webglBlendGet(gl: WebGL2RenderingContext): WebglBlendOptions;
export declare function webglBlendExec(gl: WebGL2RenderingContext, blend: WebglBlendOptions, action: () => void): void;
export declare function webglDebugBlend(gl: WebGL2RenderingContext, caption?: string): void;
//# sourceMappingURL=blend.d.ts.map