@predy-js/render-interface 0.1.64-beta.15 → 0.1.64-beta.4

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/statistic.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @predy-js/render-interface
3
3
  * Description: undefined
4
4
  * Author: undefined
5
- * Version: v0.1.64-beta.15
5
+ * Version: v0.1.64-beta.4
6
6
  */
7
7
 
8
8
  // https://github.com/greggman/webgl-memory/blob/main/src/texture-utils.js
@@ -1,4 +1,3 @@
1
- import type { MaterialInternal } from './MaterialInternal';
2
1
  export declare abstract class AndGLContext {
3
2
  abstract isEnabled(param: GLenum): boolean;
4
3
  /**
@@ -16,12 +15,4 @@ export declare abstract class AndGLContext {
16
15
  * @param param
17
16
  */
18
17
  abstract getParameter_i1(param: GLenum): number;
19
- abstract getParameter_f4(param: GLenum): [number, number, number, number];
20
- abstract getParameter_f2(param: GLenum): [number, number];
21
- /**
22
- * 将Material的状态设置到GPU
23
- * 这个方法会在Native端调用, 在RI中不会调用
24
- * 为了Android 测试,会主动调用设置状态到GPU, IOS 暂不调用
25
- */
26
- abstract setupStates(mtl: MaterialInternal): void;
27
18
  }
@@ -36,9 +36,6 @@ export declare abstract class RendererInternal implements ResourceInternal {
36
36
  readonly shaderLibrary: ShaderLibraryInternal;
37
37
  readonly width: number;
38
38
  readonly height: number;
39
- /**
40
- * 用于Android的GL上下文, 用于测试, 不会在RI中使用
41
- */
42
39
  readonly gl?: AndGLContext;
43
40
  abstract destroy(): void;
44
41
  /**
@@ -10,6 +10,3 @@ export * from './RenderPassInternal';
10
10
  export * from './ResourceInternal';
11
11
  export * from './ShaderLibraryInternal';
12
12
  export * from './TextureInternal';
13
- export * from './AndGLContext';
14
- export * from './PredyNativeInternal';
15
- export * from './PredyNativeModule';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predy-js/render-interface",
3
- "version": "0.1.64-beta.15",
3
+ "version": "0.1.64-beta.4",
4
4
  "license": "MIT",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -1,4 +1,3 @@
1
- import type { MaterialInternal } from './MaterialInternal';
2
1
 
3
2
  export abstract class AndGLContext {
4
3
  abstract isEnabled (param: GLenum): boolean;
@@ -20,15 +19,4 @@ export abstract class AndGLContext {
20
19
  * @param param
21
20
  */
22
21
  abstract getParameter_i1 (param: GLenum): number;
23
-
24
- abstract getParameter_f4 (param: GLenum): [number, number, number, number];
25
-
26
- abstract getParameter_f2 (param: GLenum): [number, number];
27
-
28
- /**
29
- * 将Material的状态设置到GPU
30
- * 这个方法会在Native端调用, 在RI中不会调用
31
- * 为了Android 测试,会主动调用设置状态到GPU, IOS 暂不调用
32
- */
33
- abstract setupStates (mtl: MaterialInternal): void;
34
22
  }
@@ -16,6 +16,5 @@ export abstract class MaterialInternal implements ResourceInternal {
16
16
 
17
17
  protected constructor (options: MaterialInternalOptions) {
18
18
  }
19
-
20
19
  abstract destroy (): void;
21
20
  }
@@ -42,9 +42,6 @@ export abstract class RendererInternal implements ResourceInternal {
42
42
  readonly shaderLibrary: ShaderLibraryInternal;
43
43
  readonly width: number;
44
44
  readonly height: number;
45
- /**
46
- * 用于Android的GL上下文, 用于测试, 不会在RI中使用
47
- */
48
45
  readonly gl?: AndGLContext;
49
46
 
50
47
  abstract destroy (): void;
@@ -10,6 +10,3 @@ export * from './RenderPassInternal';
10
10
  export * from './ResourceInternal';
11
11
  export * from './ShaderLibraryInternal';
12
12
  export * from './TextureInternal';
13
- export * from './AndGLContext';
14
- export * from './PredyNativeInternal';
15
- export * from './PredyNativeModule';
@@ -1,5 +0,0 @@
1
- import type { ImageBitmapCallback, ImageBitmapConstructor } from './ImageBitmapInternal';
2
- export declare abstract class PredyNativeInternal {
3
- abstract createImageBitmap(data: ArrayBuffer | string, //图片文件的数据
4
- options: ImageBitmapConstructor, callback: ImageBitmapCallback): void;
5
- }
@@ -1,3 +0,0 @@
1
- export declare abstract class PredyNativeModule {
2
- abstract install(callBack: (success: boolean, msg?: string) => void): void;
3
- }
@@ -1,6 +0,0 @@
1
- import type { ImageBitmapCallback, ImageBitmapConstructor } from './ImageBitmapInternal';
2
-
3
- export declare abstract class PredyNativeInternal {
4
- abstract createImageBitmap (data: ArrayBuffer | string, //图片文件的数据
5
- options: ImageBitmapConstructor, callback: ImageBitmapCallback): void;
6
- }
@@ -1,4 +0,0 @@
1
-
2
- export declare abstract class PredyNativeModule {
3
- abstract install (callBack: (success: boolean, msg?: string) => void): void;
4
- }
@@ -1,5 +0,0 @@
1
- // 给全局global 添加 predyNative: PredyNativeInternal
2
- import { PredyNativeInternal } from './PredyNativeInternal';
3
- declare global {
4
- let predyNative: PredyNativeInternal;
5
- }