ohzi-core 9.3.0 → 9.4.0
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/build/index.module.js +1 -1
- package/build/index.module.js.map +1 -1
- package/package.json +1 -1
- package/src/Browser.js +26 -0
- package/src/resource_loader/AsyncTextureLoader.js +50 -0
- package/types/BaseApplication.d.ts +1 -0
- package/types/Browser.d.ts +14 -11
- package/types/CameraManager.d.ts +10 -5
- package/types/Capabilities.d.ts +7 -5
- package/types/Configuration.d.ts +7 -5
- package/types/CustomBezierCurve.d.ts +7 -0
- package/types/Debug.d.ts +36 -37
- package/types/EventManager.d.ts +43 -41
- package/types/Graphics.d.ts +48 -34
- package/types/Initializer.d.ts +5 -3
- package/types/Input.d.ts +43 -30
- package/types/KeyboardInput.d.ts +20 -0
- package/types/OS.d.ts +13 -11
- package/types/OScreen.d.ts +21 -17
- package/types/OrthographicCamera.d.ts +1 -0
- package/types/PerspectiveCamera.d.ts +1 -0
- package/types/ReflectionPlaneContext.d.ts +7 -5
- package/types/RenderOrder.d.ts +8 -0
- package/types/ResourceContainer.d.ts +9 -7
- package/types/SceneManager.d.ts +11 -9
- package/types/Screen.d.ts +11 -16
- package/types/Time.d.ts +14 -10
- package/types/UI.d.ts +16 -14
- package/types/action_sequencer/ActionSequencer.d.ts +8 -5
- package/types/action_sequencer/NumberInterpolator.d.ts +3 -2
- package/types/canvas_drawer/SimpleTextDrawer.d.ts +1 -0
- package/types/components/AudioClip.d.ts +2 -1
- package/types/data_textures/CustomDataTexture.d.ts +11 -0
- package/types/data_textures/RGBADataTexture.d.ts +4 -0
- package/types/data_textures/RGBAFloatDataTexture.d.ts +4 -0
- package/types/data_textures/RGBDataTexture.d.ts +4 -0
- package/types/data_textures/RGBFloatDataTexture.d.ts +4 -0
- package/types/gpu_particles/GPUParticleSystem.d.ts +9 -6
- package/types/gpu_particles/ParticleAttribute.d.ts +8 -5
- package/types/gpu_particles/ParticlePositionAttribute.d.ts +3 -1
- package/types/html_utilities/CSSAnimator.d.ts +3 -2
- package/types/index.d.ts +103 -90
- package/types/materials/UnrealBloomComposeMaterial.d.ts +0 -1
- package/types/materials/gpu_particles/ParticleStorageMaterial.d.ts +0 -1
- package/types/render_mode/DebugNormalsRender.d.ts +2 -4
- package/types/render_mode/NormalRender.d.ts +2 -3
- package/types/render_mode/UnrealBloomRender.d.ts +1 -0
- package/types/render_mode/VRRender.d.ts +4 -0
- package/types/render_utilities/Blitter.d.ts +1 -2
- package/types/render_utilities/Blurrer.d.ts +1 -2
- package/types/render_utilities/DepthAndNormalsRenderer.d.ts +2 -4
- package/types/render_utilities/DualFilteringBlurrer.d.ts +2 -4
- package/types/render_utilities/GaussianBlurrer.d.ts +1 -2
- package/types/render_utilities/MedianFilter.d.ts +1 -2
- package/types/resource_loader/AbstractLoader.d.ts +1 -1
- package/types/resource_loader/AsyncTextureLoader.d.ts +5 -0
- package/types/resource_loader/AudioLoader.d.ts +5 -4
- package/types/resource_loader/BasisLoader.d.ts +2 -2
- package/types/resource_loader/CubemapLoader.d.ts +2 -2
- package/types/resource_loader/DAELoader.d.ts +2 -2
- package/types/resource_loader/FileLoader.d.ts +2 -2
- package/types/resource_loader/FontLoader.d.ts +2 -2
- package/types/resource_loader/GLTFDRACOLoader.d.ts +2 -2
- package/types/resource_loader/GLTFLoader.d.ts +2 -3
- package/types/resource_loader/HDRCubeTextureLoader.d.ts +2 -2
- package/types/resource_loader/JSONLoader.d.ts +1 -3
- package/types/resource_loader/OBJLoader.d.ts +2 -2
- package/types/resource_loader/PointArrayLoader.d.ts +2 -2
- package/types/resource_loader/RGBETextureLoader.d.ts +2 -2
- package/types/resource_loader/TextLoader.d.ts +2 -2
- package/types/resource_loader/TextureLoader.d.ts +1 -3
- package/types/resource_loader/VideoLoader.d.ts +1 -3
- package/types/static_batcher/BatchedMesh.d.ts +15 -0
- package/types/static_batcher/GeometryBatcher.d.ts +8 -6
- package/types/static_batcher/MeshBatcher.d.ts +5 -0
- package/types/ui/ui_element_state/OnIdle.d.ts +2 -4
- package/types/ui/ui_element_state/OnMouseEnter.d.ts +2 -4
- package/types/ui/ui_element_state/OnMouseExit.d.ts +2 -4
- package/types/ui/ui_element_state/OnMouseHover.d.ts +1 -2
- package/types/utilities/CameraUtilities.d.ts +20 -20
- package/types/utilities/EasingFunctions.d.ts +1 -1
- package/types/utilities/FrustumPointFitter.d.ts +2 -2
- package/types/utilities/MeshSampler.d.ts +13 -7
- package/types/utilities/ModelUtilities.d.ts +11 -9
- package/types/view_components/ApplicationView.d.ts +1 -1
- package/types/view_components/ViewComponent.d.ts +3 -1
- package/types/view_components/ViewComponentManager.d.ts +12 -9
- package/types/view_components/ViewContext.d.ts +5 -5
- package/types/view_components/ViewManager.d.ts +33 -22
- package/types/view_components/transition/ActionSequencerBuilder.d.ts +5 -4
- package/types/view_components/transition/TransitionTable.d.ts +1 -1
- package/types/view_components/transition/ViewStateTransitionHandler.d.ts +3 -2
package/package.json
CHANGED
package/src/Browser.js
CHANGED
|
@@ -33,6 +33,8 @@ class Browser
|
|
|
33
33
|
this.browser_name = 'other';
|
|
34
34
|
break;
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
this.version = this.get_version();
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
get name()
|
|
@@ -74,6 +76,30 @@ class Browser
|
|
|
74
76
|
{
|
|
75
77
|
return this.has_webm ? 'webm' : this.has_hvec ? 'hvec.mp4' : 'mp4';
|
|
76
78
|
}
|
|
79
|
+
|
|
80
|
+
get_version()
|
|
81
|
+
{
|
|
82
|
+
const ua = navigator.userAgent;
|
|
83
|
+
let tem = '';
|
|
84
|
+
let version = 0;
|
|
85
|
+
|
|
86
|
+
let M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
|
|
87
|
+
if (/trident/i.test(M[1]))
|
|
88
|
+
{
|
|
89
|
+
tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
|
|
90
|
+
version = 'IE ' + (tem[1] || '');
|
|
91
|
+
}
|
|
92
|
+
if (M[1] === 'Chrome')
|
|
93
|
+
{
|
|
94
|
+
tem = ua.match(/\b(OPR|Edge)\/(\d+)/);
|
|
95
|
+
if (tem != null) version = tem.slice(1).join(' ').replace('OPR', 'Opera');
|
|
96
|
+
}
|
|
97
|
+
M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?'];
|
|
98
|
+
if ((tem = ua.match(/version\/(\d+)/i)) != null) M.splice(1, 1, tem[1]);
|
|
99
|
+
version = M.join(' ');
|
|
100
|
+
|
|
101
|
+
return version.split(' ')[1];
|
|
102
|
+
}
|
|
77
103
|
}
|
|
78
104
|
|
|
79
105
|
const browser = new Browser();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AbstractLoader } from './AbstractLoader';
|
|
2
2
|
|
|
3
3
|
import { Texture } from 'three';
|
|
4
|
+
import { Browser } from '../Browser';
|
|
4
5
|
|
|
5
6
|
class AsyncTextureLoader extends AbstractLoader
|
|
6
7
|
{
|
|
@@ -10,6 +11,18 @@ class AsyncTextureLoader extends AbstractLoader
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
on_preloaded_finished(resource_container)
|
|
14
|
+
{
|
|
15
|
+
if (Browser.is_safari && Browser.version < 15)
|
|
16
|
+
{
|
|
17
|
+
this.load_with_old_method(resource_container);
|
|
18
|
+
}
|
|
19
|
+
else
|
|
20
|
+
{
|
|
21
|
+
this.load_with_new_method(resource_container);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
load_with_old_method(resource_container)
|
|
13
26
|
{
|
|
14
27
|
if (resource_container.resources_by_url[this.url] === undefined)
|
|
15
28
|
{
|
|
@@ -42,6 +55,43 @@ class AsyncTextureLoader extends AbstractLoader
|
|
|
42
55
|
this.__loading_ended();
|
|
43
56
|
}
|
|
44
57
|
}
|
|
58
|
+
|
|
59
|
+
load_with_new_method(resource_container)
|
|
60
|
+
{
|
|
61
|
+
if (resource_container.resources_by_url[this.url] === undefined)
|
|
62
|
+
{
|
|
63
|
+
const fetchOptions = {};
|
|
64
|
+
fetchOptions.credentials = 'same-origin';
|
|
65
|
+
// fetchOptions.headers = this.requestHeader;
|
|
66
|
+
|
|
67
|
+
fetch(this.url, fetchOptions).then((res) =>
|
|
68
|
+
{
|
|
69
|
+
return res.blob();
|
|
70
|
+
}).then((blob) =>
|
|
71
|
+
{
|
|
72
|
+
return createImageBitmap(blob, { colorSpaceConversion: 'none' });
|
|
73
|
+
}).then((imageBitmap) =>
|
|
74
|
+
{
|
|
75
|
+
const texture = new Texture(imageBitmap);
|
|
76
|
+
texture.needsUpdate = true;
|
|
77
|
+
|
|
78
|
+
resource_container.set_resource(this.resource_id, this.url, texture);
|
|
79
|
+
|
|
80
|
+
this.__update_downloaded_bytes(1, 1);
|
|
81
|
+
this.__loading_ended();
|
|
82
|
+
}).catch(function(e)
|
|
83
|
+
{
|
|
84
|
+
console.error(e);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
else
|
|
88
|
+
{
|
|
89
|
+
resource_container.set_resource(this.resource_id, this.url, resource_container.resources_by_url[this.url]);
|
|
90
|
+
|
|
91
|
+
this.__update_downloaded_bytes(1, 1);
|
|
92
|
+
this.__loading_ended();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
45
95
|
}
|
|
46
96
|
|
|
47
97
|
export { AsyncTextureLoader };
|
package/types/Browser.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
export { browser as Browser };
|
|
2
|
+
declare const browser: Browser;
|
|
3
|
+
declare class Browser {
|
|
4
|
+
init(): void;
|
|
5
|
+
browser_name: string;
|
|
6
|
+
agent: string;
|
|
7
|
+
get name(): string;
|
|
8
|
+
get is_safari(): boolean;
|
|
9
|
+
get is_chrome(): boolean;
|
|
10
|
+
get is_edge(): boolean;
|
|
11
|
+
get is_edge_chromium(): boolean;
|
|
12
|
+
get has_webm(): boolean;
|
|
13
|
+
get has_hvec(): boolean;
|
|
14
|
+
get preferred_video_extension(): "webm" | "hvec.mp4" | "mp4";
|
|
12
15
|
}
|
package/types/CameraManager.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { Camera } from "three";
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export { camera_manager as CameraManager };
|
|
4
|
+
declare const camera_manager: CameraManager;
|
|
5
|
+
declare class CameraManager {
|
|
6
|
+
init(): void;
|
|
7
|
+
_current: Camera;
|
|
8
|
+
_spectator: Camera;
|
|
9
|
+
set current(arg: any);
|
|
10
|
+
get current(): any;
|
|
11
|
+
set spectator(arg: any);
|
|
12
|
+
get spectator(): any;
|
|
8
13
|
}
|
package/types/Capabilities.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { capabilities as Capabilities };
|
|
2
|
+
declare const capabilities: Capabilities;
|
|
3
|
+
declare class Capabilities {
|
|
4
|
+
init(): void;
|
|
5
|
+
max_anisotropy: number;
|
|
6
|
+
vertex_texture_sampler_available: boolean;
|
|
7
|
+
fp_textures_available: boolean;
|
|
6
8
|
}
|
package/types/Configuration.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { configuration as Configuration };
|
|
2
|
+
declare const configuration: Configuration;
|
|
3
|
+
declare class Configuration {
|
|
4
|
+
init(parameters?: {}): void;
|
|
5
|
+
dpr: number;
|
|
6
|
+
app: {};
|
|
7
|
+
from_json(json: any): void;
|
|
6
8
|
}
|
package/types/Debug.d.ts
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
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
|
-
static draw_sphere_helper(sphere: any, color: any): any;
|
|
33
|
-
static draw_math_sphere(sphere: any): void;
|
|
34
|
-
static draw_bounding_box(bb: any): void;
|
|
35
|
-
static draw_curve(curve: any, options: any): void;
|
|
36
|
-
static draw_texture(tex: any, w: any, h: any): any;
|
|
37
|
-
static render(graphics: any): void;
|
|
1
|
+
export { debug as Debug };
|
|
2
|
+
declare const debug: Debug;
|
|
3
|
+
declare class Debug {
|
|
4
|
+
init(): void;
|
|
5
|
+
Vector3_one: any;
|
|
6
|
+
Vector3_zero: any;
|
|
7
|
+
canvas_renderer: any;
|
|
8
|
+
display_texture_meshes: any[];
|
|
9
|
+
ctx: any;
|
|
10
|
+
scene: any;
|
|
11
|
+
camera: PerspectiveCamera;
|
|
12
|
+
draw_arrow(origin: any, dir: any, color?: number): Arrow;
|
|
13
|
+
draw_axis(): AxisHelper;
|
|
14
|
+
set_debug_RT(RT: any): void;
|
|
15
|
+
rt_debug: any;
|
|
16
|
+
draw_rectangle(position_2d: any, width: any, height: any, color: any): void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
draw_line_2D(from: any, to: any, color: any): void;
|
|
19
|
+
draw_line(points: any, color?: number): any;
|
|
20
|
+
draw_cube(pos: any, size: any, color: any): Cube;
|
|
21
|
+
draw_oriented_cube(from: any, to: any, height?: number, color?: string, depth?: number): Cube;
|
|
22
|
+
draw_plane(width: any, height: any, color: any): any;
|
|
23
|
+
draw_empty_cube(pos: any, size: any, color: any): any;
|
|
24
|
+
draw_sphere(pos: any, size: any, color: any): Sphere;
|
|
25
|
+
draw_point_array(input_points: any, open?: boolean, color?: number): any;
|
|
26
|
+
draw_sphere_helper(sphere: any, color: any): any;
|
|
27
|
+
draw_math_sphere(sphere: any): void;
|
|
28
|
+
draw_bounding_box(bb: any): void;
|
|
29
|
+
draw_curve(curve: any, options: any): void;
|
|
30
|
+
draw_texture(tex: any, w: any, h: any): any;
|
|
31
|
+
render(graphics: any): void;
|
|
38
32
|
}
|
|
33
|
+
import { PerspectiveCamera } from "./PerspectiveCamera";
|
|
34
|
+
import { Arrow } from "./primitives/Arrow";
|
|
35
|
+
import { AxisHelper } from "./components/AxisHelper";
|
|
36
|
+
import { Cube } from "./primitives/Cube";
|
|
37
|
+
import { Sphere } from "./primitives/Sphere";
|
package/types/EventManager.d.ts
CHANGED
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
export
|
|
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
|
-
|
|
1
|
+
export { event_manager as EventManager };
|
|
2
|
+
declare const event_manager: EventManager;
|
|
3
|
+
declare class EventManager {
|
|
4
|
+
init(): void;
|
|
5
|
+
queue: {};
|
|
6
|
+
zoom_changed_evt: string;
|
|
7
|
+
store_clickd_evt: string;
|
|
8
|
+
point_selected_evt: string;
|
|
9
|
+
config_changed: string;
|
|
10
|
+
path_substep_completed: string;
|
|
11
|
+
path_completed: string;
|
|
12
|
+
go_to_store_requested_evt: string;
|
|
13
|
+
resource_loaded_evt: string;
|
|
14
|
+
service_clicked_evt: string;
|
|
15
|
+
unit_pos_updated_evt: string;
|
|
16
|
+
floor_changed_evt: string;
|
|
17
|
+
on_enter_floor_navigation: string;
|
|
18
|
+
on_exit_floor_navigation: string;
|
|
19
|
+
on_enter_floor_selection: string;
|
|
20
|
+
on_exit_floor_selection: string;
|
|
21
|
+
on_enter_outside_navigation: string;
|
|
22
|
+
on_exit_outside_navigation: string;
|
|
23
|
+
step_selected_evt: string;
|
|
24
|
+
fire(event: any, payload: any): void;
|
|
25
|
+
on(event: any, callback: any): void;
|
|
26
|
+
fire_zoom_changed(zoom: any): void;
|
|
27
|
+
fire_store_selected(store_id: any): void;
|
|
28
|
+
fire_point_selected(hit_data: any): void;
|
|
29
|
+
fire_config_changed(): void;
|
|
30
|
+
fire_path_substep_completed(step_number: any): void;
|
|
31
|
+
fire_path_completed(): void;
|
|
32
|
+
fire_step_selected(step_index: any): void;
|
|
33
|
+
fire_go_to_store_requested(store_id: any): void;
|
|
34
|
+
fire_resource_loaded(resource: any): void;
|
|
35
|
+
fire_service_clicked(service: any): void;
|
|
36
|
+
fire_unit_position_updated(unit_data: any): void;
|
|
37
|
+
fire_floor_switched(floor_id: any): void;
|
|
38
|
+
fire_on_enter_floor_navigation(state: any): void;
|
|
39
|
+
fire_on_exit_floor_navigation(state: any): void;
|
|
40
|
+
fire_on_enter_floor_selection(state: any): void;
|
|
41
|
+
fire_on_exit_floor_selection(state: any): void;
|
|
42
|
+
fire_on_enter_outside_navigation(state: any): void;
|
|
43
|
+
fire_on_exit_outside_navigation(state: any): void;
|
|
42
44
|
}
|
package/types/Graphics.d.ts
CHANGED
|
@@ -1,35 +1,49 @@
|
|
|
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
|
-
|
|
1
|
+
export { graphics as Graphics };
|
|
2
|
+
declare const graphics: Graphics;
|
|
3
|
+
declare class Graphics {
|
|
4
|
+
init(canvas: any, context_attributes: any): void;
|
|
5
|
+
_renderer: any;
|
|
6
|
+
blitter: Blitter;
|
|
7
|
+
canvas: any;
|
|
8
|
+
no_render: BaseRender;
|
|
9
|
+
current_render_mode: any;
|
|
10
|
+
generateDepthNormalTexture: boolean;
|
|
11
|
+
depth_and_normals_renderer: DepthAndNormalsRenderer;
|
|
12
|
+
is_webgl2: boolean;
|
|
13
|
+
canvas_context: any;
|
|
14
|
+
context_attributes: {
|
|
15
|
+
alpha: boolean;
|
|
16
|
+
depth: boolean;
|
|
17
|
+
desynchronized: boolean;
|
|
18
|
+
stencil: boolean;
|
|
19
|
+
antialias: boolean;
|
|
20
|
+
premultipliedAlpha: boolean;
|
|
21
|
+
preserveDrawingBuffer: boolean;
|
|
22
|
+
powerPreference: string;
|
|
23
|
+
logarithmicDepthBuffer: boolean;
|
|
24
|
+
force_webgl2: boolean;
|
|
25
|
+
xr_enabled: boolean;
|
|
26
|
+
};
|
|
27
|
+
resize_observer: ResizeObserver;
|
|
28
|
+
get dom_element(): any;
|
|
29
|
+
get depth_normals_RT(): any;
|
|
30
|
+
set_state(new_state: any): void;
|
|
31
|
+
update(): void;
|
|
32
|
+
__update_current_camera(): void;
|
|
33
|
+
render(scene: any, camera: any, RT: any, override_mat: any): void;
|
|
34
|
+
render_scene(scene: any): void;
|
|
35
|
+
__apply_override_material(scene: any, mat: any): void;
|
|
36
|
+
readback_RT(RT: any, buffer: any): void;
|
|
37
|
+
clear(RT: any, camera: any, clear_depth: any, clear_stencil: any): void;
|
|
38
|
+
on_resize(entries: any): void;
|
|
39
|
+
material_pass(mat: any, dst: any): void;
|
|
40
|
+
blit(src_RT: any, dst_RT: any, mat: any): void;
|
|
41
|
+
blit_clear_with_material(dst_RT: any, mat: any): void;
|
|
42
|
+
take_screenshot(blob_callback: any, width?: any, height?: any): void;
|
|
43
|
+
download_screenshot(blob: any): void;
|
|
44
|
+
dispose(): void;
|
|
45
|
+
is_floating_point_texture_available(): boolean;
|
|
31
46
|
}
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { DepthAndNormalsRenderer } from "
|
|
35
|
-
|
|
47
|
+
import { Blitter } from "./render_utilities/Blitter";
|
|
48
|
+
import { BaseRender } from "./render_mode/BaseRender";
|
|
49
|
+
import { DepthAndNormalsRenderer } from "./render_utilities/DepthAndNormalsRenderer";
|
package/types/Initializer.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { initializer as Initializer };
|
|
2
|
+
declare const initializer: Initializer;
|
|
3
|
+
declare class Initializer {
|
|
4
|
+
init(canvas: any, app_container: any, context_attributes: any, keyboard_input_container?: Document): void;
|
|
5
|
+
dispose(render_loop: any): void;
|
|
4
6
|
}
|