This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
gstats.d.ts
67 lines (67 loc) · 1.76 KB
/
gstats.d.ts
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
declare namespace GStats {
class BaseHooks {
protected _drawCalls: number;
protected _maxDeltaDrawCalls: number;
protected glhook?: GLHook;
protected texturehook?: TextureHook;
constructor();
attach(gl: any): void;
readonly drawCalls: number;
readonly maxDeltaDrawCalls: number;
readonly deltaDrawCalls: number;
readonly maxTextureCount: number;
readonly texturesCount: number;
reset(): void;
release(): void;
}
}
declare namespace GStats {
class GLHook {
drawPasses: number;
isInit: boolean;
private realGLDrawElements;
private gl;
constructor(_gl?: any);
private fakeGLdrawElements(mode, count, type, offset);
reset(): void;
release(): void;
}
}
declare namespace GStats {
class PhaserHooks extends BaseHooks {
constructor(game: any);
}
}
declare namespace GStats {
class PIXIHooks extends BaseHooks {
constructor(app: any);
}
}
declare namespace GStats {
class StatsJSAdapter {
stats: any;
dcPanel?: any;
tcPanel?: any;
hook: BaseHooks;
constructor(_hook: BaseHooks, _stats?: any);
update(): void;
reset(): void;
}
}
declare namespace GStats {
class TextureHook {
createdTextures: Array<any>;
maxTexturesCount: number;
isInit: boolean;
private realGLCreateTexture;
private realGLDeleteTexture;
private gl;
constructor(_gl?: any);
readonly currentTextureCount: number;
registerTexture(texture: any): void;
private fakeGLCreateTexture();
private fakeGLDeleteTexture(texture);
reset(): void;
release(): void;
}
}