modern-canvas
Version:
A JavaScript WebGL rendering engine. only the ESM.
32 lines (31 loc) • 964 B
TypeScript
import type { TextureLike } from '../../shared';
export declare const mipmapScaleModeMap: {
linear: {
linear: number;
nearest: number;
};
nearest: {
linear: number;
nearest: number;
};
};
export declare const scaleModeMap: {
linear: number;
nearest: number;
};
export declare const compareFuncMap: {
never: number;
less: number;
equal: number;
'less-equal': number;
greater: number;
'not-equal': number;
'greater-equal': number;
always: number;
};
export declare const wrapModeMap: {
'clamp-to-edge': number;
repeat: number;
'mirror-repeat': number;
};
export declare function updateTextureStyle(texture: TextureLike, gl: WebGL2RenderingContext, mipmaps: boolean, anisotropicExt: EXT_texture_filter_anisotropic | undefined, glFunctionName: 'samplerParameteri' | 'texParameteri', firstParam: 3553 | WebGLSampler, forceClamp: boolean, firstCreation: boolean): void;