@galacean/effects-webgl 2.0.0-alpha.9 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gl-context-manager.d.ts +3 -3
- package/dist/{gl-frame-buffer.d.ts → gl-framebuffer.d.ts} +9 -9
- package/dist/gl-geometry.d.ts +8 -3
- package/dist/gl-material.d.ts +1 -3
- package/dist/gl-pipeline-context.d.ts +3 -4
- package/dist/gl-program.d.ts +2 -4
- package/dist/{gl-render-buffer.d.ts → gl-renderbuffer.d.ts} +4 -4
- package/dist/gl-renderer-internal.d.ts +13 -13
- package/dist/gl-renderer.d.ts +12 -9
- package/dist/gl-shader-library.d.ts +3 -3
- package/dist/gl-shader.d.ts +1 -1
- package/dist/gl-texture.d.ts +6 -2
- package/dist/gl-vertex-array-object.d.ts +0 -1
- package/dist/index.d.ts +3 -2
- package/package.json +4 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { LostHandler, RestoreHandler } from '@galacean/effects-core';
|
|
1
|
+
import type { GLType, LostHandler, RestoreHandler } from '@galacean/effects-core';
|
|
2
2
|
export declare class GLContextManager {
|
|
3
3
|
canvas: HTMLCanvasElement | OffscreenCanvas | null;
|
|
4
|
-
readonly glType:
|
|
4
|
+
readonly glType: GLType;
|
|
5
5
|
gl: WebGLRenderingContext | WebGL2RenderingContext | null;
|
|
6
6
|
private readonly contextLostListener;
|
|
7
7
|
private readonly contextRestoredListener;
|
|
8
8
|
private readonly restoreHandlers;
|
|
9
9
|
private readonly lostHandlers;
|
|
10
|
-
constructor(canvas: HTMLCanvasElement | OffscreenCanvas | null, glType?:
|
|
10
|
+
constructor(canvas: HTMLCanvasElement | OffscreenCanvas | null, glType?: GLType, options?: WebGLContextAttributes);
|
|
11
11
|
dispose(): void;
|
|
12
12
|
addLostHandler(lostHandler: LostHandler): void;
|
|
13
13
|
removeLostHandler(lostHandler: LostHandler): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Disposable,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { Disposable, FramebufferProps, Renderbuffer, Renderer, Texture } from '@galacean/effects-core';
|
|
2
|
+
import { Framebuffer, RenderPassDestroyAttachmentType } from '@galacean/effects-core';
|
|
3
|
+
import { GLRenderbuffer } from './gl-renderbuffer';
|
|
4
4
|
import type { GLRenderer } from './gl-renderer';
|
|
5
5
|
import { GLTexture } from './gl-texture';
|
|
6
6
|
import type { GLEngine } from './gl-engine';
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class GLFramebuffer extends Framebuffer implements Disposable {
|
|
8
8
|
storeInvalidAttachments?: GLenum[];
|
|
9
|
-
|
|
9
|
+
depthStencilRenderbuffer?: GLRenderbuffer;
|
|
10
10
|
depthTexture?: GLTexture;
|
|
11
11
|
stencilTexture?: GLTexture;
|
|
12
12
|
colorTextures: GLTexture[];
|
|
@@ -14,9 +14,9 @@ export declare class GLFrameBuffer extends FrameBuffer implements Disposable {
|
|
|
14
14
|
engine: GLEngine;
|
|
15
15
|
readonly renderer: GLRenderer;
|
|
16
16
|
private readonly attachmentTextures;
|
|
17
|
-
constructor(props:
|
|
18
|
-
get stencilStorage():
|
|
19
|
-
get depthStorage():
|
|
17
|
+
constructor(props: FramebufferProps, renderer: Renderer);
|
|
18
|
+
get stencilStorage(): Renderbuffer | undefined;
|
|
19
|
+
get depthStorage(): Renderbuffer | undefined;
|
|
20
20
|
getDepthTexture(): Texture | undefined;
|
|
21
21
|
getStencilTexture(): Texture | undefined;
|
|
22
22
|
getColorTextures(): Texture[];
|
|
@@ -27,7 +27,7 @@ export declare class GLFrameBuffer extends FrameBuffer implements Disposable {
|
|
|
27
27
|
bind(): void;
|
|
28
28
|
resetColorTextures(colorTextures?: Texture[]): void;
|
|
29
29
|
resize(x: number, y: number, width: number, height: number): void;
|
|
30
|
-
dispose(
|
|
30
|
+
dispose(options?: {
|
|
31
31
|
depthStencilAttachment?: RenderPassDestroyAttachmentType;
|
|
32
32
|
}): void;
|
|
33
33
|
}
|
package/dist/gl-geometry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Engine,
|
|
2
|
-
import { Geometry } from '@galacean/effects-core';
|
|
1
|
+
import type { Engine, GeometryProps, SkinProps } from '@galacean/effects-core';
|
|
2
|
+
import { spec, Geometry } from '@galacean/effects-core';
|
|
3
3
|
import type { GLGPUBufferProps } from './gl-gpu-buffer';
|
|
4
4
|
import { GLGPUBuffer } from './gl-gpu-buffer';
|
|
5
5
|
import type { GLPipelineContext } from './gl-pipeline-context';
|
|
@@ -29,6 +29,7 @@ export declare class GLGeometry extends Geometry {
|
|
|
29
29
|
buffers: Record<string, GLGPUBuffer>;
|
|
30
30
|
indices?: spec.TypedArray;
|
|
31
31
|
readonly vaos: Record<string, GLVertexArrayObject | undefined>;
|
|
32
|
+
skin: SkinProps;
|
|
32
33
|
protected initialized: boolean;
|
|
33
34
|
private options?;
|
|
34
35
|
private attributesReleasable;
|
|
@@ -70,10 +71,14 @@ export declare class GLGeometry extends Geometry {
|
|
|
70
71
|
getDrawStart(): number;
|
|
71
72
|
setDrawCount(count: number): void;
|
|
72
73
|
getDrawCount(): number;
|
|
74
|
+
getSkinProps(): SkinProps;
|
|
73
75
|
private getAttributeBufferOption;
|
|
74
76
|
createIndicesBuffer(pipelineContext: GLPipelineContext, data: spec.TypedArray): GLGPUBuffer;
|
|
75
77
|
flush(): void;
|
|
76
78
|
private processProps;
|
|
77
|
-
fromData(data: GeometryData): void;
|
|
79
|
+
fromData(data: spec.GeometryData): void;
|
|
78
80
|
dispose(): void;
|
|
81
|
+
private createVertexTypedArray;
|
|
82
|
+
private createIndexTypedArray;
|
|
83
|
+
private hasSemantic;
|
|
79
84
|
}
|
package/dist/gl-material.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Engine, GlobalUniforms, MaterialDestroyOptions, MaterialProps, MaterialStates, Renderer, Texture, UndefinedAble } from '@galacean/effects-core';
|
|
2
2
|
import { spec, Material, math } from '@galacean/effects-core';
|
|
3
3
|
import type { GLPipelineContext } from './gl-pipeline-context';
|
|
4
|
-
import type { GLShaderVariant } from './gl-shader';
|
|
5
4
|
type Color = math.Color;
|
|
6
5
|
type Vector2 = math.Vector2;
|
|
7
6
|
type Vector3 = math.Vector3;
|
|
@@ -11,7 +10,6 @@ type Matrix4 = math.Matrix4;
|
|
|
11
10
|
type Quaternion = math.Quaternion;
|
|
12
11
|
declare const Vector4: typeof math.Vector4, Matrix4: typeof math.Matrix4;
|
|
13
12
|
export declare class GLMaterial extends Material {
|
|
14
|
-
shaderVariant: GLShaderVariant;
|
|
15
13
|
private floats;
|
|
16
14
|
private ints;
|
|
17
15
|
private vector2s;
|
|
@@ -29,7 +27,6 @@ export declare class GLMaterial extends Material {
|
|
|
29
27
|
private uniforms;
|
|
30
28
|
private uniformDirtyFlag;
|
|
31
29
|
private macrosDirtyFlag;
|
|
32
|
-
private readonly macros;
|
|
33
30
|
private glMaterialState;
|
|
34
31
|
constructor(engine: Engine, props?: MaterialProps);
|
|
35
32
|
get blending(): UndefinedAble<boolean>;
|
|
@@ -83,6 +80,7 @@ export declare class GLMaterial extends Material {
|
|
|
83
80
|
get isDestroyed(): boolean;
|
|
84
81
|
/**shader和texture的GPU资源初始化。 */
|
|
85
82
|
initialize(): void;
|
|
83
|
+
createShaderVariant(): void;
|
|
86
84
|
setupStates(pipelineContext: GLPipelineContext): void;
|
|
87
85
|
use(renderer: Renderer, globalUniforms?: GlobalUniforms): void;
|
|
88
86
|
getFloat(name: string): number | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Disposable, Texture, math } from '@galacean/effects-core';
|
|
1
|
+
import type { Disposable, Nullable, Texture, math } from '@galacean/effects-core';
|
|
2
2
|
import { GLShaderLibrary } from './gl-shader-library';
|
|
3
3
|
import type { GLEngine } from './gl-engine';
|
|
4
4
|
type Color = math.Color;
|
|
@@ -8,7 +8,6 @@ type Vector4 = math.Vector4;
|
|
|
8
8
|
type Matrix3 = math.Matrix3;
|
|
9
9
|
type Matrix4 = math.Matrix4;
|
|
10
10
|
type Quaternion = math.Quaternion;
|
|
11
|
-
export type Nullable<T> = T | null;
|
|
12
11
|
export declare class GLPipelineContext implements Disposable {
|
|
13
12
|
engine: GLEngine;
|
|
14
13
|
gl: WebGLRenderingContext | WebGL2RenderingContext;
|
|
@@ -18,7 +17,7 @@ export declare class GLPipelineContext implements Disposable {
|
|
|
18
17
|
private glCapabilityCache;
|
|
19
18
|
private currentFramebuffer;
|
|
20
19
|
private currentTextureBinding;
|
|
21
|
-
private
|
|
20
|
+
private currentRenderbuffer;
|
|
22
21
|
private activeTextureIndex;
|
|
23
22
|
private pixelStorei;
|
|
24
23
|
constructor(engine: GLEngine, gl: WebGLRenderingContext | WebGL2RenderingContext);
|
|
@@ -48,7 +47,7 @@ export declare class GLPipelineContext implements Disposable {
|
|
|
48
47
|
* gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer);
|
|
49
48
|
*/
|
|
50
49
|
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
|
|
51
|
-
|
|
50
|
+
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
|
|
52
51
|
/**
|
|
53
52
|
* 绑定系统 framebuffer
|
|
54
53
|
*/
|
package/dist/gl-program.d.ts
CHANGED
|
@@ -20,13 +20,11 @@ export interface ProgramUniformInfo {
|
|
|
20
20
|
export declare class GLProgram implements Disposable {
|
|
21
21
|
engine: GLEngine;
|
|
22
22
|
readonly program: WebGLProgram;
|
|
23
|
-
private readonly shared;
|
|
24
23
|
private readonly id;
|
|
25
24
|
private readonly uniformBlockMap;
|
|
26
25
|
private attribInfoMap;
|
|
27
|
-
private uniformInfoMap;
|
|
28
26
|
private pipelineContext;
|
|
29
|
-
constructor(engine: GLEngine, program: WebGLProgram,
|
|
27
|
+
constructor(engine: GLEngine, program: WebGLProgram, id: string);
|
|
30
28
|
bind(): void;
|
|
31
29
|
/**
|
|
32
30
|
* 绑定 vao 对象并设置顶点属性
|
|
@@ -34,7 +32,7 @@ export declare class GLProgram implements Disposable {
|
|
|
34
32
|
* @param geometry
|
|
35
33
|
* @returns
|
|
36
34
|
*/
|
|
37
|
-
setupAttributes(geometry: GLGeometry): GLVertexArrayObject;
|
|
35
|
+
setupAttributes(geometry: GLGeometry): GLVertexArrayObject | undefined;
|
|
38
36
|
createAttribMap(): Record<string, ProgramAttributeInfo>;
|
|
39
37
|
dispose(): void;
|
|
40
38
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { RenderbufferProps } from '@galacean/effects-core';
|
|
2
|
+
import { Renderbuffer } from '@galacean/effects-core';
|
|
3
3
|
import type { GLRendererInternal } from './gl-renderer-internal';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class GLRenderbuffer extends Renderbuffer {
|
|
5
5
|
buffer: WebGLRenderbuffer | null;
|
|
6
6
|
private initialized;
|
|
7
7
|
private renderer?;
|
|
8
|
-
constructor(props:
|
|
8
|
+
constructor(props: RenderbufferProps, renderer?: GLRendererInternal);
|
|
9
9
|
initialize(renderer: GLRendererInternal): void;
|
|
10
10
|
setSize(width: number, height: number): void;
|
|
11
11
|
dispose(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Disposable, LostHandler, Material, Geometry } from '@galacean/effects-core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { GLFramebuffer } from './gl-framebuffer';
|
|
3
3
|
import type { GLGPUBuffer } from './gl-gpu-buffer';
|
|
4
4
|
import type { GLPipelineContext } from './gl-pipeline-context';
|
|
5
|
-
import type {
|
|
5
|
+
import type { GLRenderbuffer } from './gl-renderbuffer';
|
|
6
6
|
import { GLTexture } from './gl-texture';
|
|
7
7
|
import { GLVertexArrayObject } from './gl-vertex-array-object';
|
|
8
8
|
import type { GLEngine } from './gl-engine';
|
|
@@ -14,8 +14,8 @@ export declare class GLRendererInternal implements Disposable, LostHandler {
|
|
|
14
14
|
gl: WebGLRenderingContext | WebGL2RenderingContext;
|
|
15
15
|
readonly name: string;
|
|
16
16
|
readonly textures: GLTexture[];
|
|
17
|
-
private readonly
|
|
18
|
-
private readonly
|
|
17
|
+
private readonly renderbuffers;
|
|
18
|
+
private readonly framebuffers;
|
|
19
19
|
private sourceFbo;
|
|
20
20
|
private targetFbo;
|
|
21
21
|
private destroyed;
|
|
@@ -25,19 +25,19 @@ export declare class GLRendererInternal implements Disposable, LostHandler {
|
|
|
25
25
|
get canvas(): HTMLCanvasElement | OffscreenCanvas;
|
|
26
26
|
get isDestroyed(): boolean;
|
|
27
27
|
copy2(source: GLTexture, target: GLTexture): void;
|
|
28
|
-
resetColorAttachments(rp:
|
|
29
|
-
|
|
28
|
+
resetColorAttachments(rp: GLFramebuffer, colors: GLTexture[]): void;
|
|
29
|
+
createGLRenderbuffer(renderbuffer: GLRenderbuffer): WebGLRenderbuffer | null;
|
|
30
30
|
resize(width: number, height: number): void;
|
|
31
|
-
drawGeometry(geometry: Geometry, material: Material): void;
|
|
32
|
-
|
|
31
|
+
drawGeometry(geometry: Geometry, material: Material, subMeshIndex: number): void;
|
|
32
|
+
createGLFramebuffer(framebuffer: GLFramebuffer, name?: string): WebGLFramebuffer | null;
|
|
33
33
|
/**创建包裹VAO对象。 */
|
|
34
|
-
createVAO(name
|
|
34
|
+
createVAO(name?: string): GLVertexArrayObject | undefined;
|
|
35
35
|
deleteGLTexture(texture: GLTexture): void;
|
|
36
36
|
deleteGPUBuffer(buffer: GLGPUBuffer | null): void;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
deleteGLFramebuffer(framebuffer: GLFramebuffer): void;
|
|
38
|
+
deleteGLRenderbuffer(renderbuffer: GLRenderbuffer): void;
|
|
39
39
|
private deleteResource;
|
|
40
40
|
lost(e: Event): void;
|
|
41
|
-
dispose(
|
|
41
|
+
dispose(): void;
|
|
42
42
|
}
|
|
43
|
-
export declare function assignInspectorName(obj: Record<string, any
|
|
43
|
+
export declare function assignInspectorName(obj: Record<string, any> | null, name?: string, id?: string): void;
|
package/dist/gl-renderer.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import type { Disposable,
|
|
1
|
+
import type { Disposable, Framebuffer, GLType, Geometry, LostHandler, Material, RenderFrame, RenderPass, RenderPassClearAction, RenderPassStoreAction, RendererComponent, RestoreHandler, ShaderLibrary } from '@galacean/effects-core';
|
|
2
2
|
import { FilterMode, RenderTextureFormat, Renderer, math } from '@galacean/effects-core';
|
|
3
3
|
import { ExtWrap } from './ext-wrap';
|
|
4
4
|
import { GLContextManager } from './gl-context-manager';
|
|
5
5
|
import { GLPipelineContext } from './gl-pipeline-context';
|
|
6
6
|
import { GLRendererInternal } from './gl-renderer-internal';
|
|
7
7
|
type Matrix4 = math.Matrix4;
|
|
8
|
+
type Vector4 = math.Vector4;
|
|
8
9
|
export declare class GLRenderer extends Renderer implements Disposable {
|
|
9
10
|
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
10
11
|
glRenderer: GLRendererInternal;
|
|
11
12
|
extension: ExtWrap;
|
|
12
|
-
|
|
13
|
-
temporaryRTs: Record<string,
|
|
13
|
+
framebuffer: Framebuffer;
|
|
14
|
+
temporaryRTs: Record<string, Framebuffer>;
|
|
14
15
|
pipelineContext: GLPipelineContext;
|
|
15
16
|
readonly context: GLContextManager;
|
|
16
|
-
constructor(canvas: HTMLCanvasElement | OffscreenCanvas, framework:
|
|
17
|
+
constructor(canvas: HTMLCanvasElement | OffscreenCanvas, framework: GLType, renderOptions?: WebGLContextAttributes);
|
|
17
18
|
get isDestroyed(): boolean;
|
|
18
19
|
get height(): number;
|
|
19
20
|
get width(): number;
|
|
@@ -21,12 +22,14 @@ export declare class GLRenderer extends Renderer implements Disposable {
|
|
|
21
22
|
renderRenderPass(pass: RenderPass): void;
|
|
22
23
|
renderMeshes(meshes: RendererComponent[]): void;
|
|
23
24
|
setGlobalFloat(name: string, value: number): void;
|
|
25
|
+
setGlobalVector4(name: string, value: Vector4): void;
|
|
26
|
+
getGlobalVector4(name: string): Vector4;
|
|
24
27
|
setGlobalInt(name: string, value: number): void;
|
|
25
28
|
setGlobalMatrix(name: string, value: Matrix4): void;
|
|
26
|
-
drawGeometry(geometry: Geometry, material: Material): void;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
getTemporaryRT(name: string, width: number, height: number, depthBuffer: number, filter: FilterMode, format: RenderTextureFormat):
|
|
29
|
+
drawGeometry(geometry: Geometry, material: Material, subMeshIndex?: number): void;
|
|
30
|
+
setFramebuffer(framebuffer: Framebuffer | null): void;
|
|
31
|
+
getFramebuffer(): Framebuffer;
|
|
32
|
+
getTemporaryRT(name: string, width: number, height: number, depthBuffer: number, filter: FilterMode, format: RenderTextureFormat): Framebuffer;
|
|
30
33
|
setViewport(x: number, y: number, width: number, height: number): void;
|
|
31
34
|
clear(action: RenderPassStoreAction | RenderPassClearAction): void;
|
|
32
35
|
addLostHandler(lostHandler: LostHandler): void;
|
|
@@ -34,7 +37,7 @@ export declare class GLRenderer extends Renderer implements Disposable {
|
|
|
34
37
|
getShaderLibrary(): ShaderLibrary | undefined;
|
|
35
38
|
getWidth(): number;
|
|
36
39
|
getHeight(): number;
|
|
37
|
-
dispose(
|
|
40
|
+
dispose(): void;
|
|
38
41
|
lost(e: Event): void;
|
|
39
42
|
restore(): void;
|
|
40
43
|
resize(width: number, height: number): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Disposable, RestoreHandler, ShaderCompileResult, ShaderLibrary,
|
|
1
|
+
import type { Disposable, RestoreHandler, ShaderCompileResult, ShaderLibrary, ShaderMacros, ShaderWithSource } from '@galacean/effects-core';
|
|
2
2
|
import { GLShaderVariant } from './gl-shader';
|
|
3
3
|
import type { GLPipelineContext } from './gl-pipeline-context';
|
|
4
4
|
import type { GLEngine } from './gl-engine';
|
|
@@ -14,8 +14,8 @@ export declare class GLShaderLibrary implements ShaderLibrary, Disposable, Resto
|
|
|
14
14
|
private cachedShaders;
|
|
15
15
|
constructor(engine: GLEngine, pipelineContext: GLPipelineContext);
|
|
16
16
|
compileAllShaders(asyncCallback?: (results: ShaderCompileResult[]) => void): void;
|
|
17
|
-
addShader(shaderSource: ShaderWithSource, macros?:
|
|
18
|
-
createShader(shaderSource: ShaderWithSource, macros?:
|
|
17
|
+
addShader(shaderSource: ShaderWithSource, macros?: ShaderMacros): string;
|
|
18
|
+
createShader(shaderSource: ShaderWithSource, macros?: ShaderMacros): GLShaderVariant;
|
|
19
19
|
compileShader(shader: GLShaderVariant, asyncCallback?: (result: ShaderCompileResult) => void): void;
|
|
20
20
|
private computeShaderCacheId;
|
|
21
21
|
private createProgram;
|
package/dist/gl-shader.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare class GLShaderVariant extends ShaderVariant {
|
|
|
18
18
|
uniformLocations: Record<string, WebGLUniformLocation | null>;
|
|
19
19
|
private samplerChannels;
|
|
20
20
|
constructor(engine: Engine, source: ShaderWithSource);
|
|
21
|
-
initialize(
|
|
21
|
+
initialize(): void;
|
|
22
22
|
setFloat(name: string, value: number): void;
|
|
23
23
|
setInt(name: string, value: number): void;
|
|
24
24
|
setFloats(name: string, value: number[]): void;
|
package/dist/gl-texture.d.ts
CHANGED
|
@@ -6,9 +6,13 @@ export declare class GLTexture extends Texture implements Disposable, RestoreHan
|
|
|
6
6
|
private pipelineContext;
|
|
7
7
|
private initialized;
|
|
8
8
|
constructor(engine: Engine, source?: TextureSourceOptions);
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* 绑定当前 Texture 对象
|
|
11
|
+
*/
|
|
10
12
|
bind(force?: boolean): void;
|
|
11
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* 初始化 Texture 的 GPU 资源
|
|
15
|
+
*/
|
|
12
16
|
initialize(): void;
|
|
13
17
|
clone(): GLTexture;
|
|
14
18
|
release(): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Disposable } from '@galacean/effects-core';
|
|
2
2
|
import type { GLEngine } from './gl-engine';
|
|
3
3
|
export declare class GLVertexArrayObject implements Disposable {
|
|
4
|
-
private engine;
|
|
5
4
|
ready: boolean;
|
|
6
5
|
disposed: boolean;
|
|
7
6
|
readonly vao: WebGLVertexArrayObject | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ export * from './gl-geometry';
|
|
|
2
2
|
export * from './gl-renderer';
|
|
3
3
|
export * from './gl-material';
|
|
4
4
|
export * from './gl-renderer-internal';
|
|
5
|
-
export * from './gl-
|
|
5
|
+
export * from './gl-renderbuffer';
|
|
6
6
|
export * from './gl-texture';
|
|
7
|
-
export * from './gl-
|
|
7
|
+
export * from './gl-framebuffer';
|
|
8
8
|
export * from './gl-gpu-buffer';
|
|
9
9
|
export * from './gl-vertex-array-object';
|
|
10
10
|
export * from './gl-pipeline-context';
|
|
11
11
|
export * from './gl-shader-library';
|
|
12
12
|
export * from './gl-engine';
|
|
13
|
+
export * from './gl-shader';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-webgl",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"description": "Galacean Effects runtime webgl for the web",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -38,12 +38,13 @@
|
|
|
38
38
|
"registry": "https://registry.npmjs.org"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"
|
|
41
|
+
"string-hash": "^1.1.3",
|
|
42
|
+
"@galacean/effects-core": "2.0.0-beta.1"
|
|
42
43
|
},
|
|
43
44
|
"scripts": {
|
|
44
45
|
"prebuild": "pnpm clean",
|
|
45
46
|
"build": "pnpm build:declaration",
|
|
46
47
|
"build:declaration": "tsc -d --emitDeclarationOnly",
|
|
47
|
-
"clean": "rimraf dist && rimraf
|
|
48
|
+
"clean": "rimraf dist && rimraf \"*+(.tsbuildinfo)\""
|
|
48
49
|
}
|
|
49
50
|
}
|