-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypings.d.ts
More file actions
49 lines (43 loc) · 1.22 KB
/
typings.d.ts
File metadata and controls
49 lines (43 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
declare module '*.glsl'
declare module '*.vert'
declare module '*.frag'
declare module '*.vs'
declare module '*.fs'
interface Window {
getWebGLContext: (htmlDomEle: HTMLCanvasElement)=> WebGLRenderingContext
initShaders: (gl: WebGLRenderingContext, VSHADER_SOURCE: string, FSHADER_SOURCE: string)=>boolean
createProgram: (gl: WebGLRenderingContext, VSHADER_SOURCE: string, FSHADER_SOURCE: string)=>WebGLProgram
Matrix4: new (value?: any) => Matrix4
HDRImage: new () => any
webglLessonsUI: WebglLessonsUI
}
interface WebglLessonsUI{
setupUI: (ele: HTMLElement|null, settings: any, changes: any)=>void
}
interface WebGLRenderingContext{
program: WebGLProgram
}
interface WebGLProgram{
a_Position?: number
a_Normal?: number
u_MvpMatrix?: WebGLUniformLocation
u_NormalMatrix?: WebGLUniformLocation
a_TexCoord?: number
u_Sampler?: WebGLUniformLocation
}
interface WebGLBuffer{
num: number
type: number
}
declare type OffscreenCanvas = HTMLCanvasElement;
declare var OffscreenCanvas: {
prototype: OffscreenCanvas;
new(): OffscreenCanvas;
};
declare type WebGLObject = {};
interface Window {
OffscreenCanvas: OffscreenCanvas;
}
interface Navigator {
msSaveBlob?: (blob: Blob, fileName: string) => boolean;
}