UNPKG

1.57 kBTypeScriptView Raw
1import regl from 'regl';
2export declare const primitiveMap: {
3 [key: string]: 'points' | 'lines' | 'line loop' | 'line strip' | 'triangles' | 'triangle strip' | 'triangle fan';
4};
5export declare const usageMap: {
6 [key: string]: 'static' | 'dynamic' | 'stream';
7};
8export declare const dataTypeMap: {
9 [key: string]: 'int8' | 'int16' | 'int32' | 'uint8' | 'uint16' | 'uint32' | 'float';
10};
11export declare const formatMap: {
12 [key: string]: 'alpha' | 'luminance' | 'luminance alpha' | 'rgb' | 'rgba' | 'rgba4' | 'rgb5 a1' | 'rgb565' | 'depth' | 'depth stencil';
13};
14export declare const mipmapMap: {
15 [key: string]: 'dont care' | 'nice' | 'fast';
16};
17export declare const filterMap: {
18 [key: string]: 'nearest' | 'linear' | 'mipmap' | 'nearest mipmap linear' | 'linear mipmap nearest' | 'nearest mipmap nearest';
19};
20export declare const wrapModeMap: {
21 [key: string]: 'repeat' | 'clamp' | 'mirror';
22};
23export declare const colorSpaceMap: {
24 [key: string]: 'none' | 'browser';
25};
26export declare const depthFuncMap: {
27 [key: string]: 'never' | 'always' | 'less' | 'lequal' | 'greater' | 'gequal' | 'equal' | 'notequal';
28};
29export declare const blendEquationMap: {
30 [key: string]: regl.BlendingEquation;
31};
32export declare const blendFuncMap: {
33 [key: string]: regl.BlendingFunction;
34};
35export declare const stencilFuncMap: {
36 [key: string]: regl.ComparisonOperatorType;
37};
38export declare const stencilOpMap: {
39 [key: string]: regl.StencilOperationType;
40};
41export declare const cullFaceMap: {
42 [key: string]: regl.FaceOrientationType;
43};