@predy-js/render-interface 0.1.60-beta.4 → 0.1.60-beta.5
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/index.js +146 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +146 -39
- package/dist/index.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/statistic.js +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/native/MaterialInternal.d.ts +2 -8
- package/dist/types/native/RenderFrameInternal.d.ts +2 -6
- package/dist/types/native/RendererInternal.d.ts +0 -2
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
@@ -4,6 +4,7 @@ export * from '../types/Texture';
|
|
4
4
|
export * from '../types/GPUBuffer';
|
5
5
|
export { constants } from './webgl/constants';
|
6
6
|
export * from '../types/ShaderLibrary';
|
7
|
+
export * as types from '../types';
|
7
8
|
export { MarsRenderFrame as RenderFrame } from './render/MarsRenderFrame';
|
8
9
|
export { MarsRenderer as Renderer } from './render/MarsRenderer';
|
9
10
|
export { MarsMesh as Mesh, MarsInstancedMesh as InstancedMesh } from './render/MarsMesh';
|
package/dist/statistic.js
CHANGED
package/dist/types/index.d.ts
CHANGED
@@ -13,7 +13,6 @@ export * from './RenderPass';
|
|
13
13
|
export * from './Mesh';
|
14
14
|
export * from './Geometry';
|
15
15
|
export * from './ShaderLibrary';
|
16
|
-
export { GPURenderer as Renderer } from './Renderer';
|
17
16
|
export * from './type';
|
18
17
|
export declare function getDefaultTextureFactory(): TextureFactory;
|
19
18
|
export declare function setDefaultTextureFactory(factory: TextureFactory): void;
|
@@ -15,12 +15,6 @@ export declare abstract class MaterialInternal implements ResourceInternal {
|
|
15
15
|
dataBlocks: DataBlockInternal[];
|
16
16
|
protected constructor(options: MaterialInternalOptions);
|
17
17
|
abstract destroy(): void;
|
18
|
-
|
19
|
-
|
20
|
-
* 和 uniform sampler2D uTextures[4] 都使用此函数
|
21
|
-
* @param name
|
22
|
-
* @param value
|
23
|
-
*/
|
24
|
-
abstract setUniformTextures(name: string, value: TextureInternal[]): void;
|
25
|
-
abstract getUniformTextures(name: string): TextureInternal[];
|
18
|
+
abstract setUniformTexture(name: string, value: TextureInternal): void;
|
19
|
+
abstract getUniformTexture(name: string): TextureInternal;
|
26
20
|
}
|
@@ -18,12 +18,8 @@ export declare abstract class RenderFrameInternal implements ResourceInternal {
|
|
18
18
|
abstract destroy(): void;
|
19
19
|
/**
|
20
20
|
* warp层完成所有数据传输后,通知客户端,可以进行实际渲染,
|
21
|
-
*
|
21
|
+
* 实际渲染根据客户端时机进行
|
22
22
|
*/
|
23
|
-
abstract
|
24
|
-
/**
|
25
|
-
* 将RenderFrame移除渲染队列
|
26
|
-
*/
|
27
|
-
abstract end(): void;
|
23
|
+
abstract flush(): void;
|
28
24
|
abstract updateLoadAction(action: RenderPassLoadAction): void;
|
29
25
|
}
|
@@ -40,8 +40,6 @@ export declare abstract class RendererInternal implements ResourceInternal {
|
|
40
40
|
abstract createRenderFrame(options: RenderFrameInternalOptions): RenderFrameInternal;
|
41
41
|
abstract createTexture(options: TextureInternalConstructOptions): TextureInternal;
|
42
42
|
abstract getResourceInfo(): InternalResInfo;
|
43
|
-
abstract requestAnimationFrame(callback: (timestamp: number) => void): number;
|
44
|
-
abstract cancelAnimationFrame(id: number): void;
|
45
43
|
abstract createImageBitmap(data: ArrayBuffer | string, //图片文件的数据
|
46
44
|
options: ImageBitmapConstructor, callback: ImageBitmapCallback): void;
|
47
45
|
}
|