UNPKG

1.24 kBTypeScriptView Raw
1import { Material } from "./material";
2import { Screen } from "./webgl2/screen";
3import { Shader } from "./shader";
4import { Texture } from "./texture";
5export declare class Asset {
6 static totalTask: number;
7 static finishedTask: number;
8 static addTask(): void;
9 static finishTask(): void;
10 static taskObserve: any;
11 static loadImage(url: any): Promise<{}>;
12 static loadBufferImage(buffer: DataView, mimeType: any): Promise<{}>;
13 static adjustDataUri(root: any, uri: any): any;
14 static glbMagic: number;
15 static decoder: TextDecoder;
16 static glbParse(path: string): Promise<{
17 json: any;
18 bin: any[];
19 }>;
20 static loadGLTF(path: string, screen: Screen, envmap?: Texture, shader?: Shader): Promise<import("./ECS/entityMgr").Entity>;
21 static loadBuffer(bufferPath: any): Promise<ArrayBuffer>;
22 static LoadShaderProgram(url: any): Promise<Shader>;
23 static LoadMaterial(matName: any): Promise<Material>;
24 static cubemapOrder: string[];
25 static loadCubeimg(folder: any, format?: string): Promise<{}[]>;
26 static loadCubemap(folder: any, format?: string): Promise<Texture>;
27 static loadTexture(url: string, option: any): Promise<Texture>;
28}