connected-spaces-platform.web 5.12.0 → 5.13.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/Debug/ConnectedSpacesPlatform_WASM.js +84 -32
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +275 -95
- package/connectedspacesplatform.js +449 -147
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +743 -210
- package/package.json +1 -1
|
@@ -811,6 +811,13 @@ function csp_systems_EAssetCollectionTypeFactory(
|
|
|
811
811
|
ProxyClassFactories["csp_systems_EAssetCollectionType"] =
|
|
812
812
|
csp_systems_EAssetCollectionTypeFactory;
|
|
813
813
|
|
|
814
|
+
function csp_systems_EShaderTypeFactory(
|
|
815
|
+
nativePointer: NativePointer,
|
|
816
|
+
): Systems.EShaderType {
|
|
817
|
+
return nativePointer.pointer as Systems.EShaderType;
|
|
818
|
+
}
|
|
819
|
+
ProxyClassFactories["csp_systems_EShaderType"] = csp_systems_EShaderTypeFactory;
|
|
820
|
+
|
|
814
821
|
function csp_systems_EAlphaModeFactory(
|
|
815
822
|
nativePointer: NativePointer,
|
|
816
823
|
): Systems.EAlphaMode {
|
|
@@ -818,12 +825,20 @@ function csp_systems_EAlphaModeFactory(
|
|
|
818
825
|
}
|
|
819
826
|
ProxyClassFactories["csp_systems_EAlphaMode"] = csp_systems_EAlphaModeFactory;
|
|
820
827
|
|
|
821
|
-
function
|
|
828
|
+
function csp_systems_EBlendModeFactory(
|
|
822
829
|
nativePointer: NativePointer,
|
|
823
|
-
): Systems.
|
|
824
|
-
return nativePointer.pointer as Systems.
|
|
830
|
+
): Systems.EBlendMode {
|
|
831
|
+
return nativePointer.pointer as Systems.EBlendMode;
|
|
825
832
|
}
|
|
826
|
-
ProxyClassFactories["
|
|
833
|
+
ProxyClassFactories["csp_systems_EBlendMode"] = csp_systems_EBlendModeFactory;
|
|
834
|
+
|
|
835
|
+
function csp_systems_EColorChannelFactory(
|
|
836
|
+
nativePointer: NativePointer,
|
|
837
|
+
): Systems.EColorChannel {
|
|
838
|
+
return nativePointer.pointer as Systems.EColorChannel;
|
|
839
|
+
}
|
|
840
|
+
ProxyClassFactories["csp_systems_EColorChannel"] =
|
|
841
|
+
csp_systems_EColorChannelFactory;
|
|
827
842
|
|
|
828
843
|
function csp_systems_ETextureResourceTypeFactory(
|
|
829
844
|
nativePointer: NativePointer,
|
|
@@ -1831,6 +1846,14 @@ function csp_systems_HTTPHeadersResultFactory(
|
|
|
1831
1846
|
ProxyClassFactories["csp_systems_HTTPHeadersResult"] =
|
|
1832
1847
|
csp_systems_HTTPHeadersResultFactory;
|
|
1833
1848
|
|
|
1849
|
+
function csp_systems_AlphaVideoMaterialFactory(
|
|
1850
|
+
nativePointer: NativePointer,
|
|
1851
|
+
): NativeClassWrapper {
|
|
1852
|
+
return new Systems.AlphaVideoMaterial(nativePointer);
|
|
1853
|
+
}
|
|
1854
|
+
ProxyClassFactories["csp_systems_AlphaVideoMaterial"] =
|
|
1855
|
+
csp_systems_AlphaVideoMaterialFactory;
|
|
1856
|
+
|
|
1834
1857
|
function csp_systems_AssetResultFactory(
|
|
1835
1858
|
nativePointer: NativePointer,
|
|
1836
1859
|
): NativeClassWrapper {
|
|
@@ -1892,29 +1915,29 @@ function csp_systems_GLTFMaterialFactory(
|
|
|
1892
1915
|
ProxyClassFactories["csp_systems_GLTFMaterial"] =
|
|
1893
1916
|
csp_systems_GLTFMaterialFactory;
|
|
1894
1917
|
|
|
1895
|
-
function
|
|
1918
|
+
function csp_systems_LODChainResultFactory(
|
|
1896
1919
|
nativePointer: NativePointer,
|
|
1897
1920
|
): NativeClassWrapper {
|
|
1898
|
-
return new Systems.
|
|
1921
|
+
return new Systems.LODChainResult(nativePointer);
|
|
1899
1922
|
}
|
|
1900
|
-
ProxyClassFactories["
|
|
1901
|
-
|
|
1923
|
+
ProxyClassFactories["csp_systems_LODChainResult"] =
|
|
1924
|
+
csp_systems_LODChainResultFactory;
|
|
1902
1925
|
|
|
1903
|
-
function
|
|
1926
|
+
function csp_systems_MaterialResultFactory(
|
|
1904
1927
|
nativePointer: NativePointer,
|
|
1905
1928
|
): NativeClassWrapper {
|
|
1906
|
-
return new Systems.
|
|
1929
|
+
return new Systems.MaterialResult(nativePointer);
|
|
1907
1930
|
}
|
|
1908
|
-
ProxyClassFactories["
|
|
1909
|
-
|
|
1931
|
+
ProxyClassFactories["csp_systems_MaterialResult"] =
|
|
1932
|
+
csp_systems_MaterialResultFactory;
|
|
1910
1933
|
|
|
1911
|
-
function
|
|
1934
|
+
function csp_systems_MaterialsResultFactory(
|
|
1912
1935
|
nativePointer: NativePointer,
|
|
1913
1936
|
): NativeClassWrapper {
|
|
1914
|
-
return new Systems.
|
|
1937
|
+
return new Systems.MaterialsResult(nativePointer);
|
|
1915
1938
|
}
|
|
1916
|
-
ProxyClassFactories["
|
|
1917
|
-
|
|
1939
|
+
ProxyClassFactories["csp_systems_MaterialsResult"] =
|
|
1940
|
+
csp_systems_MaterialsResultFactory;
|
|
1918
1941
|
|
|
1919
1942
|
function csp_systems_ProductInfoResultFactory(
|
|
1920
1943
|
nativePointer: NativePointer,
|
|
@@ -2519,18 +2542,6 @@ function csp_common_Array_csp_systems_EAssetTypeFactory(
|
|
|
2519
2542
|
ProxyClassFactories["csp_common_Array_csp_systems_EAssetType"] =
|
|
2520
2543
|
csp_common_Array_csp_systems_EAssetTypeFactory;
|
|
2521
2544
|
|
|
2522
|
-
function csp_common_Array_csp_systems_GLTFMaterialFactory(
|
|
2523
|
-
nativePointer: NativePointer,
|
|
2524
|
-
): NativeClassWrapper {
|
|
2525
|
-
return new Common.Array<Systems.GLTFMaterial>(
|
|
2526
|
-
nativePointer,
|
|
2527
|
-
csp_systems_GLTFMaterialFactory,
|
|
2528
|
-
"csp_systems_GLTFMaterial",
|
|
2529
|
-
);
|
|
2530
|
-
}
|
|
2531
|
-
ProxyClassFactories["csp_common_Array_csp_systems_GLTFMaterial"] =
|
|
2532
|
-
csp_common_Array_csp_systems_GLTFMaterialFactory;
|
|
2533
|
-
|
|
2534
2545
|
function csp_common_Array_csp_systems_LODAssetFactory(
|
|
2535
2546
|
nativePointer: NativePointer,
|
|
2536
2547
|
): NativeClassWrapper {
|
|
@@ -2543,6 +2554,18 @@ function csp_common_Array_csp_systems_LODAssetFactory(
|
|
|
2543
2554
|
ProxyClassFactories["csp_common_Array_csp_systems_LODAsset"] =
|
|
2544
2555
|
csp_common_Array_csp_systems_LODAssetFactory;
|
|
2545
2556
|
|
|
2557
|
+
function csp_common_Array_csp_systems_MaterialFactory(
|
|
2558
|
+
nativePointer: NativePointer,
|
|
2559
|
+
): NativeClassWrapper {
|
|
2560
|
+
return new Common.Array<Systems.Material>(
|
|
2561
|
+
nativePointer,
|
|
2562
|
+
csp_systems_MaterialFactory,
|
|
2563
|
+
"csp_systems_Material",
|
|
2564
|
+
);
|
|
2565
|
+
}
|
|
2566
|
+
ProxyClassFactories["csp_common_Array_csp_systems_Material"] =
|
|
2567
|
+
csp_common_Array_csp_systems_MaterialFactory;
|
|
2568
|
+
|
|
2546
2569
|
function csp_common_Array_csp_systems_VariantOptionInfoFactory(
|
|
2547
2570
|
nativePointer: NativePointer,
|
|
2548
2571
|
): NativeClassWrapper {
|
|
@@ -3956,9 +3979,21 @@ export namespace Systems {
|
|
|
3956
3979
|
|
|
3957
3980
|
export namespace Systems {
|
|
3958
3981
|
/**
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3982
|
+
* @description Enum representing the shader type of a material.
|
|
3983
|
+
@details This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
|
|
3984
|
+
*/
|
|
3985
|
+
export enum EShaderType {
|
|
3986
|
+
Standard = 0,
|
|
3987
|
+
AlphaVideo = 1,
|
|
3988
|
+
}
|
|
3989
|
+
}
|
|
3990
|
+
|
|
3991
|
+
export namespace Systems {
|
|
3992
|
+
/**
|
|
3993
|
+
* @description Defines how the alpha value of a material is interpreted.
|
|
3994
|
+
@details The alpha value is taken from the fourth component of the base color for metallic-roughness material model.
|
|
3995
|
+
* This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
|
|
3996
|
+
*/
|
|
3962
3997
|
export enum EAlphaMode {
|
|
3963
3998
|
Opaque,
|
|
3964
3999
|
Mask,
|
|
@@ -3968,10 +4003,28 @@ export namespace Systems {
|
|
|
3968
4003
|
|
|
3969
4004
|
export namespace Systems {
|
|
3970
4005
|
/**
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
4006
|
+
* @description Defines how the alpha value of a material is interpreted.
|
|
4007
|
+
@details The alpha value is taken from the fourth component of the base color for metallic-roughness material model, unless the shader supports
|
|
4008
|
+
* EColorChannel.
|
|
4009
|
+
* This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
|
|
4010
|
+
*/
|
|
4011
|
+
export enum EBlendMode {
|
|
4012
|
+
Normal = 0,
|
|
4013
|
+
Additive = 1,
|
|
4014
|
+
}
|
|
4015
|
+
}
|
|
4016
|
+
|
|
4017
|
+
export namespace Systems {
|
|
4018
|
+
/**
|
|
4019
|
+
* @description Defines where the alpha value is read from.
|
|
4020
|
+
@details The alpha value is usually taken from the fourth component of the base color but this allows is to be read from another channel.
|
|
4021
|
+
* This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
|
|
4022
|
+
*/
|
|
4023
|
+
export enum EColorChannel {
|
|
4024
|
+
R = 0,
|
|
4025
|
+
G = 1,
|
|
4026
|
+
B = 2,
|
|
4027
|
+
A = 3,
|
|
3975
4028
|
}
|
|
3976
4029
|
}
|
|
3977
4030
|
|
|
@@ -27765,7 +27818,7 @@ export namespace Systems {
|
|
|
27765
27818
|
|
|
27766
27819
|
export namespace Systems {
|
|
27767
27820
|
/**
|
|
27768
|
-
@ingroup Asset System
|
|
27821
|
+
@ingroup Asset System.
|
|
27769
27822
|
* @description Base class for a material.
|
|
27770
27823
|
*/
|
|
27771
27824
|
export class Material extends NativeClassWrapper implements INativeResource {
|
|
@@ -27775,8 +27828,8 @@ export namespace Systems {
|
|
|
27775
27828
|
}
|
|
27776
27829
|
|
|
27777
27830
|
/**
|
|
27778
|
-
* @description Gets the user-defined name of the material
|
|
27779
|
-
* @return
|
|
27831
|
+
* @description Gets the user-defined name of the material.
|
|
27832
|
+
* @return Returns the material name.
|
|
27780
27833
|
*/
|
|
27781
27834
|
|
|
27782
27835
|
getName(): string {
|
|
@@ -27796,8 +27849,40 @@ export namespace Systems {
|
|
|
27796
27849
|
}
|
|
27797
27850
|
|
|
27798
27851
|
/**
|
|
27799
|
-
* @description Gets the
|
|
27800
|
-
* @return
|
|
27852
|
+
* @description Gets the shader type of the material.
|
|
27853
|
+
* @return Returns the shader type.
|
|
27854
|
+
*/
|
|
27855
|
+
|
|
27856
|
+
getShaderType(): Systems.EShaderType {
|
|
27857
|
+
let _result = Module.ccall(
|
|
27858
|
+
"csp_systems_Material_GetShaderTypeC_EShaderTypeC",
|
|
27859
|
+
"number",
|
|
27860
|
+
["number"],
|
|
27861
|
+
[this.pointer],
|
|
27862
|
+
);
|
|
27863
|
+
|
|
27864
|
+
return _result;
|
|
27865
|
+
}
|
|
27866
|
+
|
|
27867
|
+
/**
|
|
27868
|
+
* @description Gets the version of the material.
|
|
27869
|
+
* @return Returns the version of the material.
|
|
27870
|
+
*/
|
|
27871
|
+
|
|
27872
|
+
getVersion(): number {
|
|
27873
|
+
let _result = Module.ccall(
|
|
27874
|
+
"csp_systems_Material_GetVersionC_intC",
|
|
27875
|
+
"number",
|
|
27876
|
+
["number"],
|
|
27877
|
+
[this.pointer],
|
|
27878
|
+
);
|
|
27879
|
+
|
|
27880
|
+
return _result;
|
|
27881
|
+
}
|
|
27882
|
+
|
|
27883
|
+
/**
|
|
27884
|
+
* @description Gets the collection id for the material.
|
|
27885
|
+
* @return Returns the collection id.
|
|
27801
27886
|
*/
|
|
27802
27887
|
|
|
27803
27888
|
getMaterialCollectionId(): string {
|
|
@@ -27817,8 +27902,8 @@ export namespace Systems {
|
|
|
27817
27902
|
}
|
|
27818
27903
|
|
|
27819
27904
|
/**
|
|
27820
|
-
* @description Gets the id for the material
|
|
27821
|
-
* @return
|
|
27905
|
+
* @description Gets the id for the material.
|
|
27906
|
+
* @return Returns the material id.
|
|
27822
27907
|
*/
|
|
27823
27908
|
|
|
27824
27909
|
getMaterialId(): string {
|
|
@@ -27838,10 +27923,10 @@ export namespace Systems {
|
|
|
27838
27923
|
}
|
|
27839
27924
|
|
|
27840
27925
|
/**
|
|
27841
|
-
* @description
|
|
27926
|
+
* @description Constructs a material bound to an AssetCollection and Asset.
|
|
27842
27927
|
* @param name - The name of the material.
|
|
27843
|
-
* @param materialCollectionId - The asset collection
|
|
27844
|
-
* @param materialId - The asset where the material info is stored
|
|
27928
|
+
* @param materialCollectionId - The asset collection which references the associated material asset.
|
|
27929
|
+
* @param materialId - The asset where the material info is stored.
|
|
27845
27930
|
*/
|
|
27846
27931
|
static create_name_materialCollectionId_materialId(
|
|
27847
27932
|
name: string,
|
|
@@ -27860,9 +27945,28 @@ export namespace Systems {
|
|
|
27860
27945
|
return new Material(_nPtr);
|
|
27861
27946
|
}
|
|
27862
27947
|
|
|
27863
|
-
|
|
27948
|
+
/**
|
|
27949
|
+
* @description Constructs a versioned material bound to an AssetCollection and Asset.
|
|
27950
|
+
* @param name - The name of the material.
|
|
27951
|
+
* @param materialCollectionId - The asset collection which references the associated material asset.
|
|
27952
|
+
* @param materialId - The asset where the material info is stored.
|
|
27953
|
+
* @param type - The material shader type.
|
|
27954
|
+
* @param version - The material version.
|
|
27955
|
+
*/
|
|
27956
|
+
static create_name_materialCollectionId_materialId_type_version(
|
|
27957
|
+
name: string,
|
|
27958
|
+
materialCollectionId: string,
|
|
27959
|
+
materialId: string,
|
|
27960
|
+
type: Systems.EShaderType,
|
|
27961
|
+
version: number,
|
|
27962
|
+
): Material {
|
|
27864
27963
|
var _ptr = Module._malloc(8);
|
|
27865
|
-
Module.ccall(
|
|
27964
|
+
Module.ccall(
|
|
27965
|
+
"csp_systems_Material_Ctor_StringRC_StringRC_StringRC_EShaderType_intC",
|
|
27966
|
+
"void",
|
|
27967
|
+
["number", "string", "string", "string", "number", "number"],
|
|
27968
|
+
[_ptr, name, materialCollectionId, materialId, type, version],
|
|
27969
|
+
);
|
|
27866
27970
|
var _nPtr = getNativePointer(_ptr);
|
|
27867
27971
|
|
|
27868
27972
|
return new Material(_nPtr);
|
|
@@ -27880,6 +27984,14 @@ export namespace Systems {
|
|
|
27880
27984
|
this.disposed = true;
|
|
27881
27985
|
}
|
|
27882
27986
|
}
|
|
27987
|
+
|
|
27988
|
+
static create(): Material {
|
|
27989
|
+
var _ptr = Module._malloc(8);
|
|
27990
|
+
Module.ccall("csp_systems_Material_Ctor", "void", ["number"], [_ptr]);
|
|
27991
|
+
var _nPtr = getNativePointer(_ptr);
|
|
27992
|
+
|
|
27993
|
+
return new Material(_nPtr);
|
|
27994
|
+
}
|
|
27883
27995
|
}
|
|
27884
27996
|
}
|
|
27885
27997
|
|
|
@@ -44577,6 +44689,412 @@ export namespace Systems {
|
|
|
44577
44689
|
}
|
|
44578
44690
|
}
|
|
44579
44691
|
|
|
44692
|
+
export namespace Systems {
|
|
44693
|
+
/**
|
|
44694
|
+
@ingroup Asset System
|
|
44695
|
+
* @description Data class which represents an Alpha Video material.
|
|
44696
|
+
*/
|
|
44697
|
+
export class AlphaVideoMaterial
|
|
44698
|
+
extends Systems.Material
|
|
44699
|
+
implements INativeResource
|
|
44700
|
+
{
|
|
44701
|
+
/** @internal */
|
|
44702
|
+
constructor(pointer: NativePointer) {
|
|
44703
|
+
super(pointer);
|
|
44704
|
+
}
|
|
44705
|
+
|
|
44706
|
+
static fromMaterial(
|
|
44707
|
+
baseInstance: Systems.Material,
|
|
44708
|
+
): Systems.AlphaVideoMaterial {
|
|
44709
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
44710
|
+
return new Systems.AlphaVideoMaterial(
|
|
44711
|
+
new NativePointer(
|
|
44712
|
+
nativeClassWrapper.pointer,
|
|
44713
|
+
nativeClassWrapper.ownsPointer,
|
|
44714
|
+
),
|
|
44715
|
+
);
|
|
44716
|
+
}
|
|
44717
|
+
|
|
44718
|
+
/**
|
|
44719
|
+
* @description Sets the color texture.
|
|
44720
|
+
@details The first three components (RGB) MUST be encoded with the sRGB transfer function. They specify the color of the material.
|
|
44721
|
+
* If the fourth component (A) is present, it represents the linear alpha coverage of the material.
|
|
44722
|
+
* Otherwise, the alpha coverage is equal to 1.0.
|
|
44723
|
+
* The material.blendMode property defines how the alpha is blended when alphaMode is set to BLEND.
|
|
44724
|
+
* The material.readAlphaFromChannel property defines which color channel to read the alpha values from.
|
|
44725
|
+
* The stored texels MUST NOT be premultiplied.
|
|
44726
|
+
* @param texture - The material color texture.
|
|
44727
|
+
@pre If the fourth component (A) is undefined, the texture MUST be sampled as having 1.0 in all components.
|
|
44728
|
+
*/
|
|
44729
|
+
|
|
44730
|
+
setColorTexture(texture: Systems.TextureInfo): void {
|
|
44731
|
+
Module.ccall(
|
|
44732
|
+
"csp_systems_AlphaVideoMaterial_SetColorTexture_void_TextureInfoRC",
|
|
44733
|
+
"void",
|
|
44734
|
+
["number", "number"],
|
|
44735
|
+
[this.pointer, texture.pointer],
|
|
44736
|
+
);
|
|
44737
|
+
}
|
|
44738
|
+
|
|
44739
|
+
/**
|
|
44740
|
+
* @description Gets the color texture.
|
|
44741
|
+
* @return The material color texture.
|
|
44742
|
+
*/
|
|
44743
|
+
|
|
44744
|
+
getColorTexture(): Systems.TextureInfo {
|
|
44745
|
+
var _ret = Module._malloc(8);
|
|
44746
|
+
|
|
44747
|
+
Module.ccall(
|
|
44748
|
+
"csp_systems_AlphaVideoMaterial_GetColorTextureC_TextureInfoRC",
|
|
44749
|
+
"void",
|
|
44750
|
+
["number", "number"],
|
|
44751
|
+
[_ret, this.pointer],
|
|
44752
|
+
);
|
|
44753
|
+
var _nPtr = new Systems.TextureInfo(getNativePointer(_ret));
|
|
44754
|
+
Module._free(_ret);
|
|
44755
|
+
|
|
44756
|
+
return _nPtr;
|
|
44757
|
+
}
|
|
44758
|
+
|
|
44759
|
+
/**
|
|
44760
|
+
* @description Sets the doubleSided property which specifies whether the material is double sided.
|
|
44761
|
+
@details When this value is false, back-face culling is enabled, i.e., only front-facing triangles are rendered.
|
|
44762
|
+
* When this value is true, back-face culling is disabled and double sided lighting is enabled.
|
|
44763
|
+
* @param doubleSided - The double sided value.
|
|
44764
|
+
*/
|
|
44765
|
+
|
|
44766
|
+
setDoubleSided(doubleSided: boolean): void {
|
|
44767
|
+
Module.ccall(
|
|
44768
|
+
"csp_systems_AlphaVideoMaterial_SetDoubleSided_void_bool",
|
|
44769
|
+
"void",
|
|
44770
|
+
["number", "boolean"],
|
|
44771
|
+
[this.pointer, doubleSided],
|
|
44772
|
+
);
|
|
44773
|
+
}
|
|
44774
|
+
|
|
44775
|
+
/**
|
|
44776
|
+
* @description Gets the double sided value.
|
|
44777
|
+
* @return The double sided value.
|
|
44778
|
+
*/
|
|
44779
|
+
|
|
44780
|
+
getDoubleSided(): boolean {
|
|
44781
|
+
let _result = Module.ccall(
|
|
44782
|
+
"csp_systems_AlphaVideoMaterial_GetDoubleSidedC_bool",
|
|
44783
|
+
"boolean",
|
|
44784
|
+
["number"],
|
|
44785
|
+
[this.pointer],
|
|
44786
|
+
);
|
|
44787
|
+
|
|
44788
|
+
return _result;
|
|
44789
|
+
}
|
|
44790
|
+
|
|
44791
|
+
/**
|
|
44792
|
+
* @description Sets whether the material is emissive, if not material should be lit by the scene lighting.
|
|
44793
|
+
* @param isEmissive - The emissive value.
|
|
44794
|
+
*/
|
|
44795
|
+
|
|
44796
|
+
setIsEmissive(isEmissive: boolean): void {
|
|
44797
|
+
Module.ccall(
|
|
44798
|
+
"csp_systems_AlphaVideoMaterial_SetIsEmissive_void_bool",
|
|
44799
|
+
"void",
|
|
44800
|
+
["number", "boolean"],
|
|
44801
|
+
[this.pointer, isEmissive],
|
|
44802
|
+
);
|
|
44803
|
+
}
|
|
44804
|
+
|
|
44805
|
+
/**
|
|
44806
|
+
* @description Gets whether the material is emissive, if not material should be lit by the scene lighting.
|
|
44807
|
+
* @return Bool
|
|
44808
|
+
*/
|
|
44809
|
+
|
|
44810
|
+
getIsEmissive(): boolean {
|
|
44811
|
+
let _result = Module.ccall(
|
|
44812
|
+
"csp_systems_AlphaVideoMaterial_GetIsEmissiveC_bool",
|
|
44813
|
+
"boolean",
|
|
44814
|
+
["number"],
|
|
44815
|
+
[this.pointer],
|
|
44816
|
+
);
|
|
44817
|
+
|
|
44818
|
+
return _result;
|
|
44819
|
+
}
|
|
44820
|
+
|
|
44821
|
+
/**
|
|
44822
|
+
* @description Sets the color channel to read the alpha values from.
|
|
44823
|
+
* @param colorChannel - The color channel to read the alpha values from.
|
|
44824
|
+
*/
|
|
44825
|
+
|
|
44826
|
+
setReadAlphaFromChannel(colorChannel: Systems.EColorChannel): void {
|
|
44827
|
+
Module.ccall(
|
|
44828
|
+
"csp_systems_AlphaVideoMaterial_SetReadAlphaFromChannel_void_EColorChannel",
|
|
44829
|
+
"void",
|
|
44830
|
+
["number", "number"],
|
|
44831
|
+
[this.pointer, colorChannel],
|
|
44832
|
+
);
|
|
44833
|
+
}
|
|
44834
|
+
|
|
44835
|
+
/**
|
|
44836
|
+
* @description Gets the color channel to read the alpha values from.
|
|
44837
|
+
* @return The color channel to read the alpha values from.
|
|
44838
|
+
*/
|
|
44839
|
+
|
|
44840
|
+
getReadAlphaFromChannel(): Systems.EColorChannel {
|
|
44841
|
+
let _result = Module.ccall(
|
|
44842
|
+
"csp_systems_AlphaVideoMaterial_GetReadAlphaFromChannelC_EColorChannel",
|
|
44843
|
+
"number",
|
|
44844
|
+
["number"],
|
|
44845
|
+
[this.pointer],
|
|
44846
|
+
);
|
|
44847
|
+
|
|
44848
|
+
return _result;
|
|
44849
|
+
}
|
|
44850
|
+
|
|
44851
|
+
/**
|
|
44852
|
+
* @description Sets the mode to use for alpha blending.
|
|
44853
|
+
* @param mode - The mode to use for alpha blending.
|
|
44854
|
+
*/
|
|
44855
|
+
|
|
44856
|
+
setBlendMode(mode: Systems.EBlendMode): void {
|
|
44857
|
+
Module.ccall(
|
|
44858
|
+
"csp_systems_AlphaVideoMaterial_SetBlendMode_void_EBlendMode",
|
|
44859
|
+
"void",
|
|
44860
|
+
["number", "number"],
|
|
44861
|
+
[this.pointer, mode],
|
|
44862
|
+
);
|
|
44863
|
+
}
|
|
44864
|
+
|
|
44865
|
+
/**
|
|
44866
|
+
* @description Gets the alpha blend mode.
|
|
44867
|
+
* @return The alpha blend mode.
|
|
44868
|
+
*/
|
|
44869
|
+
|
|
44870
|
+
getBlendMode(): Systems.EBlendMode {
|
|
44871
|
+
let _result = Module.ccall(
|
|
44872
|
+
"csp_systems_AlphaVideoMaterial_GetBlendModeC_EBlendMode",
|
|
44873
|
+
"number",
|
|
44874
|
+
["number"],
|
|
44875
|
+
[this.pointer],
|
|
44876
|
+
);
|
|
44877
|
+
|
|
44878
|
+
return _result;
|
|
44879
|
+
}
|
|
44880
|
+
|
|
44881
|
+
/**
|
|
44882
|
+
* @description Sets the fresnel factor.
|
|
44883
|
+
* @param factor - The fresnel factor.
|
|
44884
|
+
*/
|
|
44885
|
+
|
|
44886
|
+
setFresnelFactor(factor: number): void {
|
|
44887
|
+
assert(factor >= Limits.FLOAT_MIN);
|
|
44888
|
+
assert(factor <= Limits.FLOAT_MAX);
|
|
44889
|
+
|
|
44890
|
+
Module.ccall(
|
|
44891
|
+
"csp_systems_AlphaVideoMaterial_SetFresnelFactor_void_float",
|
|
44892
|
+
"void",
|
|
44893
|
+
["number", "number"],
|
|
44894
|
+
[this.pointer, factor],
|
|
44895
|
+
);
|
|
44896
|
+
}
|
|
44897
|
+
|
|
44898
|
+
/**
|
|
44899
|
+
* @description Gets the fresnel factor.
|
|
44900
|
+
* @return The fresnel factor.
|
|
44901
|
+
*/
|
|
44902
|
+
|
|
44903
|
+
getFresnelFactor(): number {
|
|
44904
|
+
let _result = Module.ccall(
|
|
44905
|
+
"csp_systems_AlphaVideoMaterial_GetFresnelFactorC_float",
|
|
44906
|
+
"number",
|
|
44907
|
+
["number"],
|
|
44908
|
+
[this.pointer],
|
|
44909
|
+
);
|
|
44910
|
+
|
|
44911
|
+
return _result;
|
|
44912
|
+
}
|
|
44913
|
+
|
|
44914
|
+
/**
|
|
44915
|
+
* @description Set the Material tint.
|
|
44916
|
+
* @param tint - The tint value.
|
|
44917
|
+
*/
|
|
44918
|
+
|
|
44919
|
+
setTint(tint: Common.Vector3): void {
|
|
44920
|
+
Module.ccall(
|
|
44921
|
+
"csp_systems_AlphaVideoMaterial_SetTint_void_Vector3RC",
|
|
44922
|
+
"void",
|
|
44923
|
+
["number", "number"],
|
|
44924
|
+
[this.pointer, tint.pointer],
|
|
44925
|
+
);
|
|
44926
|
+
}
|
|
44927
|
+
|
|
44928
|
+
/**
|
|
44929
|
+
* @description Get the Material tint.
|
|
44930
|
+
* @return The tint value.
|
|
44931
|
+
*/
|
|
44932
|
+
|
|
44933
|
+
getTint(): Common.Vector3 {
|
|
44934
|
+
var _ret = Module._malloc(8);
|
|
44935
|
+
|
|
44936
|
+
Module.ccall(
|
|
44937
|
+
"csp_systems_AlphaVideoMaterial_GetTintC_Vector3RC",
|
|
44938
|
+
"void",
|
|
44939
|
+
["number", "number"],
|
|
44940
|
+
[_ret, this.pointer],
|
|
44941
|
+
);
|
|
44942
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
44943
|
+
Module._free(_ret);
|
|
44944
|
+
|
|
44945
|
+
return _nPtr;
|
|
44946
|
+
}
|
|
44947
|
+
|
|
44948
|
+
/**
|
|
44949
|
+
* @description Set the alpha factor.
|
|
44950
|
+
* @param factor - The alpha factor.
|
|
44951
|
+
*/
|
|
44952
|
+
|
|
44953
|
+
setAlphaFactor(factor: number): void {
|
|
44954
|
+
assert(factor >= Limits.FLOAT_MIN);
|
|
44955
|
+
assert(factor <= Limits.FLOAT_MAX);
|
|
44956
|
+
|
|
44957
|
+
Module.ccall(
|
|
44958
|
+
"csp_systems_AlphaVideoMaterial_SetAlphaFactor_void_float",
|
|
44959
|
+
"void",
|
|
44960
|
+
["number", "number"],
|
|
44961
|
+
[this.pointer, factor],
|
|
44962
|
+
);
|
|
44963
|
+
}
|
|
44964
|
+
|
|
44965
|
+
/**
|
|
44966
|
+
* @description Get the alpha factor.
|
|
44967
|
+
* @return The alpha factor.
|
|
44968
|
+
*/
|
|
44969
|
+
|
|
44970
|
+
getAlphaFactor(): number {
|
|
44971
|
+
let _result = Module.ccall(
|
|
44972
|
+
"csp_systems_AlphaVideoMaterial_GetAlphaFactorC_float",
|
|
44973
|
+
"number",
|
|
44974
|
+
["number"],
|
|
44975
|
+
[this.pointer],
|
|
44976
|
+
);
|
|
44977
|
+
|
|
44978
|
+
return _result;
|
|
44979
|
+
}
|
|
44980
|
+
|
|
44981
|
+
/**
|
|
44982
|
+
* @description Set the emissive intensity.
|
|
44983
|
+
* @param intensity - The emissive intensity.
|
|
44984
|
+
*/
|
|
44985
|
+
|
|
44986
|
+
setEmissiveIntensity(intensity: number): void {
|
|
44987
|
+
assert(intensity >= Limits.FLOAT_MIN);
|
|
44988
|
+
assert(intensity <= Limits.FLOAT_MAX);
|
|
44989
|
+
|
|
44990
|
+
Module.ccall(
|
|
44991
|
+
"csp_systems_AlphaVideoMaterial_SetEmissiveIntensity_void_float",
|
|
44992
|
+
"void",
|
|
44993
|
+
["number", "number"],
|
|
44994
|
+
[this.pointer, intensity],
|
|
44995
|
+
);
|
|
44996
|
+
}
|
|
44997
|
+
|
|
44998
|
+
/**
|
|
44999
|
+
* @description Get the emissive intensity.
|
|
45000
|
+
* @return The emissive intensity.
|
|
45001
|
+
*/
|
|
45002
|
+
|
|
45003
|
+
getEmissiveIntensity(): number {
|
|
45004
|
+
let _result = Module.ccall(
|
|
45005
|
+
"csp_systems_AlphaVideoMaterial_GetEmissiveIntensityC_float",
|
|
45006
|
+
"number",
|
|
45007
|
+
["number"],
|
|
45008
|
+
[this.pointer],
|
|
45009
|
+
);
|
|
45010
|
+
|
|
45011
|
+
return _result;
|
|
45012
|
+
}
|
|
45013
|
+
|
|
45014
|
+
/**
|
|
45015
|
+
* @description Set the alpha mask.
|
|
45016
|
+
* @param mask - The alpha mask.
|
|
45017
|
+
*/
|
|
45018
|
+
|
|
45019
|
+
setAlphaMask(mask: number): void {
|
|
45020
|
+
assert(mask >= Limits.FLOAT_MIN);
|
|
45021
|
+
assert(mask <= Limits.FLOAT_MAX);
|
|
45022
|
+
|
|
45023
|
+
Module.ccall(
|
|
45024
|
+
"csp_systems_AlphaVideoMaterial_SetAlphaMask_void_float",
|
|
45025
|
+
"void",
|
|
45026
|
+
["number", "number"],
|
|
45027
|
+
[this.pointer, mask],
|
|
45028
|
+
);
|
|
45029
|
+
}
|
|
45030
|
+
|
|
45031
|
+
/**
|
|
45032
|
+
* @description Get the alpha mask.
|
|
45033
|
+
* @return The alpha mask.
|
|
45034
|
+
*/
|
|
45035
|
+
|
|
45036
|
+
getAlphaMask(): number {
|
|
45037
|
+
let _result = Module.ccall(
|
|
45038
|
+
"csp_systems_AlphaVideoMaterial_GetAlphaMaskC_float",
|
|
45039
|
+
"number",
|
|
45040
|
+
["number"],
|
|
45041
|
+
[this.pointer],
|
|
45042
|
+
);
|
|
45043
|
+
|
|
45044
|
+
return _result;
|
|
45045
|
+
}
|
|
45046
|
+
|
|
45047
|
+
/**
|
|
45048
|
+
* @description Constructor which links the material to an asset.
|
|
45049
|
+
* @param name - The name of the material.
|
|
45050
|
+
* @param materialCollectionId - The asset collection which holds the associated material asset.
|
|
45051
|
+
* @param materialId - The asset where the material info is stored.
|
|
45052
|
+
*/
|
|
45053
|
+
static create_name_materialCollectionId_materialId(
|
|
45054
|
+
name: string,
|
|
45055
|
+
materialCollectionId: string,
|
|
45056
|
+
materialId: string,
|
|
45057
|
+
): AlphaVideoMaterial {
|
|
45058
|
+
var _ptr = Module._malloc(8);
|
|
45059
|
+
Module.ccall(
|
|
45060
|
+
"csp_systems_AlphaVideoMaterial_Ctor_StringRC_StringRC_StringRC",
|
|
45061
|
+
"void",
|
|
45062
|
+
["number", "string", "string", "string"],
|
|
45063
|
+
[_ptr, name, materialCollectionId, materialId],
|
|
45064
|
+
);
|
|
45065
|
+
var _nPtr = getNativePointer(_ptr);
|
|
45066
|
+
|
|
45067
|
+
return new AlphaVideoMaterial(_nPtr);
|
|
45068
|
+
}
|
|
45069
|
+
|
|
45070
|
+
delete(): void {
|
|
45071
|
+
if (this.ownsPointer && !this.disposed) {
|
|
45072
|
+
Module.ccall(
|
|
45073
|
+
"csp_systems_AlphaVideoMaterial_Dtor",
|
|
45074
|
+
"void",
|
|
45075
|
+
["number"],
|
|
45076
|
+
[this.pointer],
|
|
45077
|
+
);
|
|
45078
|
+
|
|
45079
|
+
this.disposed = true;
|
|
45080
|
+
}
|
|
45081
|
+
}
|
|
45082
|
+
|
|
45083
|
+
static create(): AlphaVideoMaterial {
|
|
45084
|
+
var _ptr = Module._malloc(8);
|
|
45085
|
+
Module.ccall(
|
|
45086
|
+
"csp_systems_AlphaVideoMaterial_Ctor",
|
|
45087
|
+
"void",
|
|
45088
|
+
["number"],
|
|
45089
|
+
[_ptr],
|
|
45090
|
+
);
|
|
45091
|
+
var _nPtr = getNativePointer(_ptr);
|
|
45092
|
+
|
|
45093
|
+
return new AlphaVideoMaterial(_nPtr);
|
|
45094
|
+
}
|
|
45095
|
+
}
|
|
45096
|
+
}
|
|
45097
|
+
|
|
44580
45098
|
export namespace Systems {
|
|
44581
45099
|
/**
|
|
44582
45100
|
@ingroup Asset System
|
|
@@ -46144,6 +46662,7 @@ export namespace Systems {
|
|
|
46144
46662
|
/**
|
|
46145
46663
|
* @description Creates a new material backed by an AssetCollection/Asset.
|
|
46146
46664
|
* @param name - The name of the new material.
|
|
46665
|
+
* @param shaderType - The type of shader model the material is associated with.
|
|
46147
46666
|
* @param spaceId - The space id this material is associated with.
|
|
46148
46667
|
* @param metadata - The metadata to be associated with the created material.
|
|
46149
46668
|
* @param assetTags - Tags to be associated with the created material.
|
|
@@ -46152,20 +46671,21 @@ export namespace Systems {
|
|
|
46152
46671
|
|
|
46153
46672
|
async createMaterial(
|
|
46154
46673
|
name: string,
|
|
46674
|
+
shaderType: Systems.EShaderType,
|
|
46155
46675
|
spaceId: string,
|
|
46156
46676
|
metadata: Common.Map<string, string>,
|
|
46157
46677
|
assetTags: Common.Array<string>,
|
|
46158
|
-
): Promise<Systems.
|
|
46678
|
+
): Promise<Systems.MaterialResult> {
|
|
46159
46679
|
var _resolve;
|
|
46160
46680
|
|
|
46161
|
-
var _promise = new Promise<Systems.
|
|
46681
|
+
var _promise = new Promise<Systems.MaterialResult>((_r) => {
|
|
46162
46682
|
_resolve = _r;
|
|
46163
46683
|
});
|
|
46164
46684
|
|
|
46165
46685
|
var _callbackPtr: number;
|
|
46166
46686
|
var _callback = (_stateObject__: number, result) => {
|
|
46167
46687
|
var _resultPtr = getNativePointer(result);
|
|
46168
|
-
var _resultInstance = new Systems.
|
|
46688
|
+
var _resultInstance = new Systems.MaterialResult(_resultPtr);
|
|
46169
46689
|
|
|
46170
46690
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
46171
46691
|
return;
|
|
@@ -46179,12 +46699,22 @@ export namespace Systems {
|
|
|
46179
46699
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46180
46700
|
|
|
46181
46701
|
Module.ccall(
|
|
46182
|
-
"
|
|
46702
|
+
"csp_systems_AssetSystem_CreateMaterial_void_StringRC_EShaderTypeC_StringRC_MapR_ArrayRC_MaterialResultCallback",
|
|
46183
46703
|
"void",
|
|
46184
|
-
[
|
|
46704
|
+
[
|
|
46705
|
+
"number",
|
|
46706
|
+
"string",
|
|
46707
|
+
"number",
|
|
46708
|
+
"string",
|
|
46709
|
+
"number",
|
|
46710
|
+
"number",
|
|
46711
|
+
"number",
|
|
46712
|
+
"number",
|
|
46713
|
+
],
|
|
46185
46714
|
[
|
|
46186
46715
|
this.pointer,
|
|
46187
46716
|
name,
|
|
46717
|
+
shaderType,
|
|
46188
46718
|
spaceId,
|
|
46189
46719
|
metadata.pointer,
|
|
46190
46720
|
assetTags.pointer,
|
|
@@ -46206,7 +46736,7 @@ export namespace Systems {
|
|
|
46206
46736
|
*/
|
|
46207
46737
|
|
|
46208
46738
|
async updateMaterial(
|
|
46209
|
-
material: Systems.
|
|
46739
|
+
material: Systems.Material,
|
|
46210
46740
|
): Promise<Systems.NullResult> {
|
|
46211
46741
|
var _resolve;
|
|
46212
46742
|
|
|
@@ -46231,7 +46761,7 @@ export namespace Systems {
|
|
|
46231
46761
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46232
46762
|
|
|
46233
46763
|
Module.ccall(
|
|
46234
|
-
"
|
|
46764
|
+
"csp_systems_AssetSystem_UpdateMaterial_void_MaterialRC_NullResultCallback",
|
|
46235
46765
|
"void",
|
|
46236
46766
|
["number", "number", "number", "number"],
|
|
46237
46767
|
[this.pointer, material.pointer, _callbackPtr, 0],
|
|
@@ -46248,7 +46778,7 @@ export namespace Systems {
|
|
|
46248
46778
|
*/
|
|
46249
46779
|
|
|
46250
46780
|
async deleteMaterial(
|
|
46251
|
-
material: Systems.
|
|
46781
|
+
material: Systems.Material,
|
|
46252
46782
|
): Promise<Systems.NullResult> {
|
|
46253
46783
|
var _resolve;
|
|
46254
46784
|
|
|
@@ -46273,7 +46803,7 @@ export namespace Systems {
|
|
|
46273
46803
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46274
46804
|
|
|
46275
46805
|
Module.ccall(
|
|
46276
|
-
"
|
|
46806
|
+
"csp_systems_AssetSystem_DeleteMaterial_void_MaterialRC_NullResultCallback",
|
|
46277
46807
|
"void",
|
|
46278
46808
|
["number", "number", "number", "number"],
|
|
46279
46809
|
[this.pointer, material.pointer, _callbackPtr, 0],
|
|
@@ -46288,17 +46818,17 @@ export namespace Systems {
|
|
|
46288
46818
|
* @param callback - Callback when asynchronous task finishes.
|
|
46289
46819
|
*/
|
|
46290
46820
|
|
|
46291
|
-
async getMaterials(spaceId: string): Promise<Systems.
|
|
46821
|
+
async getMaterials(spaceId: string): Promise<Systems.MaterialsResult> {
|
|
46292
46822
|
var _resolve;
|
|
46293
46823
|
|
|
46294
|
-
var _promise = new Promise<Systems.
|
|
46824
|
+
var _promise = new Promise<Systems.MaterialsResult>((_r) => {
|
|
46295
46825
|
_resolve = _r;
|
|
46296
46826
|
});
|
|
46297
46827
|
|
|
46298
46828
|
var _callbackPtr: number;
|
|
46299
46829
|
var _callback = (_stateObject__: number, result) => {
|
|
46300
46830
|
var _resultPtr = getNativePointer(result);
|
|
46301
|
-
var _resultInstance = new Systems.
|
|
46831
|
+
var _resultInstance = new Systems.MaterialsResult(_resultPtr);
|
|
46302
46832
|
|
|
46303
46833
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
46304
46834
|
return;
|
|
@@ -46312,7 +46842,7 @@ export namespace Systems {
|
|
|
46312
46842
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46313
46843
|
|
|
46314
46844
|
Module.ccall(
|
|
46315
|
-
"
|
|
46845
|
+
"csp_systems_AssetSystem_GetMaterials_void_StringRC_MaterialsResultCallback",
|
|
46316
46846
|
"void",
|
|
46317
46847
|
["number", "string", "number", "number"],
|
|
46318
46848
|
[this.pointer, spaceId, _callbackPtr, 0],
|
|
@@ -46331,17 +46861,17 @@ export namespace Systems {
|
|
|
46331
46861
|
async getMaterial(
|
|
46332
46862
|
assetCollectionId: string,
|
|
46333
46863
|
assetId: string,
|
|
46334
|
-
): Promise<Systems.
|
|
46864
|
+
): Promise<Systems.MaterialResult> {
|
|
46335
46865
|
var _resolve;
|
|
46336
46866
|
|
|
46337
|
-
var _promise = new Promise<Systems.
|
|
46867
|
+
var _promise = new Promise<Systems.MaterialResult>((_r) => {
|
|
46338
46868
|
_resolve = _r;
|
|
46339
46869
|
});
|
|
46340
46870
|
|
|
46341
46871
|
var _callbackPtr: number;
|
|
46342
46872
|
var _callback = (_stateObject__: number, result) => {
|
|
46343
46873
|
var _resultPtr = getNativePointer(result);
|
|
46344
|
-
var _resultInstance = new Systems.
|
|
46874
|
+
var _resultInstance = new Systems.MaterialResult(_resultPtr);
|
|
46345
46875
|
|
|
46346
46876
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
46347
46877
|
return;
|
|
@@ -46355,7 +46885,7 @@ export namespace Systems {
|
|
|
46355
46885
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46356
46886
|
|
|
46357
46887
|
Module.ccall(
|
|
46358
|
-
"
|
|
46888
|
+
"csp_systems_AssetSystem_GetMaterial_void_StringRC_StringRC_MaterialResultCallback",
|
|
46359
46889
|
"void",
|
|
46360
46890
|
["number", "string", "string", "number", "number"],
|
|
46361
46891
|
[this.pointer, assetCollectionId, assetId, _callbackPtr, 0],
|
|
@@ -46467,8 +46997,8 @@ export namespace Systems {
|
|
|
46467
46997
|
}
|
|
46468
46998
|
|
|
46469
46999
|
/**
|
|
46470
|
-
* Sets how
|
|
46471
|
-
* @param mode -
|
|
47000
|
+
* @description Sets the alpha mode which determines how the alpha value is interpreted.
|
|
47001
|
+
* @param mode - The alpha mode to set.
|
|
46472
47002
|
*/
|
|
46473
47003
|
|
|
46474
47004
|
setAlphaMode(mode: Systems.EAlphaMode): void {
|
|
@@ -46481,8 +47011,8 @@ export namespace Systems {
|
|
|
46481
47011
|
}
|
|
46482
47012
|
|
|
46483
47013
|
/**
|
|
46484
|
-
* Gets how
|
|
46485
|
-
* @return
|
|
47014
|
+
* @description Gets the alpha mode which determines how the alpha value is interpreted.
|
|
47015
|
+
* @return The alpha mode.
|
|
46486
47016
|
*/
|
|
46487
47017
|
|
|
46488
47018
|
getAlphaMode(): Systems.EAlphaMode {
|
|
@@ -46497,11 +47027,11 @@ export namespace Systems {
|
|
|
46497
47027
|
}
|
|
46498
47028
|
|
|
46499
47029
|
/**
|
|
46500
|
-
* @description Sets the alpha cutoff value
|
|
46501
|
-
|
|
46502
|
-
* If the alpha value is greater than or equal to the alphaCutoff value then it is rendered as fully opaque,
|
|
46503
|
-
* otherwise, it is rendered as fully transparent. alphaCutoff value is ignored for other modes.
|
|
46504
|
-
* @param cutoff -
|
|
47030
|
+
* @description Sets the alpha cutoff value.
|
|
47031
|
+
@details When alphaMode is set to MASK the alphaCutoff property specifies the cutoff threshold.
|
|
47032
|
+
* If the alpha value is greater than or equal to the alphaCutoff value then it is rendered as fully opaque,
|
|
47033
|
+
* otherwise, it is rendered as fully transparent. The alphaCutoff value is ignored for other modes.
|
|
47034
|
+
* @param cutoff - The alpha cutoff value to set.
|
|
46505
47035
|
*/
|
|
46506
47036
|
|
|
46507
47037
|
setAlphaCutoff(cutoff: number): void {
|
|
@@ -46517,8 +47047,8 @@ export namespace Systems {
|
|
|
46517
47047
|
}
|
|
46518
47048
|
|
|
46519
47049
|
/**
|
|
46520
|
-
* Gets the alpha cutoff value
|
|
46521
|
-
* @return
|
|
47050
|
+
* @description Gets the alpha cutoff value.
|
|
47051
|
+
* @return The alpha cutoff value.
|
|
46522
47052
|
*/
|
|
46523
47053
|
|
|
46524
47054
|
getAlphaCutoff(): number {
|
|
@@ -46533,10 +47063,10 @@ export namespace Systems {
|
|
|
46533
47063
|
}
|
|
46534
47064
|
|
|
46535
47065
|
/**
|
|
46536
|
-
* @description Sets the doubleSided property which specifies whether the material is double sided.
|
|
46537
|
-
|
|
46538
|
-
* When this value is true, back - face culling is disabled and double sided lighting is enabled.
|
|
46539
|
-
* @param doubleSided -
|
|
47066
|
+
* @description Sets the doubleSided property which specifies whether the material is double sided.
|
|
47067
|
+
@details When this value is false, back - face culling is enabled, i.e., only front-facing triangles are rendered.
|
|
47068
|
+
* When this value is true, back - face culling is disabled and double sided lighting is enabled.
|
|
47069
|
+
* @param doubleSided - The double sided value to set.
|
|
46540
47070
|
*/
|
|
46541
47071
|
|
|
46542
47072
|
setDoubleSided(doubleSided: boolean): void {
|
|
@@ -46549,8 +47079,8 @@ export namespace Systems {
|
|
|
46549
47079
|
}
|
|
46550
47080
|
|
|
46551
47081
|
/**
|
|
46552
|
-
* @description Gets the double sided value
|
|
46553
|
-
* @return
|
|
47082
|
+
* @description Gets the double sided value.
|
|
47083
|
+
* @return The double sided value.
|
|
46554
47084
|
*/
|
|
46555
47085
|
|
|
46556
47086
|
getDoubleSided(): boolean {
|
|
@@ -46565,9 +47095,9 @@ export namespace Systems {
|
|
|
46565
47095
|
}
|
|
46566
47096
|
|
|
46567
47097
|
/**
|
|
46568
|
-
* @description Sets the factors for the base color of the material.
|
|
46569
|
-
|
|
46570
|
-
* @param factor -
|
|
47098
|
+
* @description Sets the factors for the base color of the material.
|
|
47099
|
+
@details This value defines linear multipliers for the sampled texels of the base color texture.
|
|
47100
|
+
* @param factor - The base color factor to set.
|
|
46571
47101
|
*/
|
|
46572
47102
|
|
|
46573
47103
|
setBaseColorFactor(factor: Common.Vector4): void {
|
|
@@ -46580,8 +47110,8 @@ export namespace Systems {
|
|
|
46580
47110
|
}
|
|
46581
47111
|
|
|
46582
47112
|
/**
|
|
46583
|
-
* @description Gets the factor of the base color texture
|
|
46584
|
-
* @return
|
|
47113
|
+
* @description Gets the factor of the base color texture.
|
|
47114
|
+
* @return The base color factor.
|
|
46585
47115
|
*/
|
|
46586
47116
|
|
|
46587
47117
|
getBaseColorFactor(): Common.Vector4 {
|
|
@@ -46600,9 +47130,9 @@ export namespace Systems {
|
|
|
46600
47130
|
}
|
|
46601
47131
|
|
|
46602
47132
|
/**
|
|
46603
|
-
* @description Sets the factor for the metalness of the material.
|
|
46604
|
-
|
|
46605
|
-
* @param factor -
|
|
47133
|
+
* @description Sets the factor for the metalness of the material.
|
|
47134
|
+
@details This value defines a linear multiplier for the sampled metalness values of the metallic-roughness texture.
|
|
47135
|
+
* @param factor - The metallic factor to set.
|
|
46606
47136
|
*/
|
|
46607
47137
|
|
|
46608
47138
|
setMetallicFactor(factor: number): void {
|
|
@@ -46618,8 +47148,8 @@ export namespace Systems {
|
|
|
46618
47148
|
}
|
|
46619
47149
|
|
|
46620
47150
|
/**
|
|
46621
|
-
* @description Gets the factor of the metallic texture
|
|
46622
|
-
* @return
|
|
47151
|
+
* @description Gets the factor of the metallic texture.
|
|
47152
|
+
* @return The metallic factor.
|
|
46623
47153
|
*/
|
|
46624
47154
|
|
|
46625
47155
|
getMetallicFactor(): number {
|
|
@@ -46634,9 +47164,9 @@ export namespace Systems {
|
|
|
46634
47164
|
}
|
|
46635
47165
|
|
|
46636
47166
|
/**
|
|
46637
|
-
* @description Sets the factor for the roughness of the material.
|
|
46638
|
-
|
|
46639
|
-
* @param factor -
|
|
47167
|
+
* @description Sets the factor for the roughness of the material.
|
|
47168
|
+
@details This value defines a linear multiplier for the sampled roughness values of the metallic-roughness texture.
|
|
47169
|
+
* @param factor - The roughness factor to set.
|
|
46640
47170
|
*/
|
|
46641
47171
|
|
|
46642
47172
|
setRoughnessFactor(factor: number): void {
|
|
@@ -46652,8 +47182,8 @@ export namespace Systems {
|
|
|
46652
47182
|
}
|
|
46653
47183
|
|
|
46654
47184
|
/**
|
|
46655
|
-
* @description Gets the factor of the roughness texture
|
|
46656
|
-
* @return
|
|
47185
|
+
* @description Gets the factor of the roughness texture.
|
|
47186
|
+
* @return The roughness factor.
|
|
46657
47187
|
*/
|
|
46658
47188
|
|
|
46659
47189
|
getRoughnessFactor(): number {
|
|
@@ -46668,9 +47198,9 @@ export namespace Systems {
|
|
|
46668
47198
|
}
|
|
46669
47199
|
|
|
46670
47200
|
/**
|
|
46671
|
-
* @description Sets factors for the emissive color of the material.
|
|
46672
|
-
|
|
46673
|
-
* @param factor -
|
|
47201
|
+
* @description Sets factors for the emissive color of the material.
|
|
47202
|
+
@details This value defines linear multipliers for the sampled texels of the emissive texture.
|
|
47203
|
+
* @param factor - The emissive factor to set.
|
|
46674
47204
|
*/
|
|
46675
47205
|
|
|
46676
47206
|
setEmissiveFactor(factor: Common.Vector3): void {
|
|
@@ -46683,8 +47213,8 @@ export namespace Systems {
|
|
|
46683
47213
|
}
|
|
46684
47214
|
|
|
46685
47215
|
/**
|
|
46686
|
-
* @description Gets the factor of the emissive color texture
|
|
46687
|
-
* @return
|
|
47216
|
+
* @description Gets the factor of the emissive color texture.
|
|
47217
|
+
* @return The emissive factor.
|
|
46688
47218
|
*/
|
|
46689
47219
|
|
|
46690
47220
|
getEmissiveFactor(): Common.Vector3 {
|
|
@@ -46703,13 +47233,13 @@ export namespace Systems {
|
|
|
46703
47233
|
}
|
|
46704
47234
|
|
|
46705
47235
|
/**
|
|
46706
|
-
* @description Sets the base color texture.
|
|
46707
|
-
|
|
46708
|
-
* If the fourth component (A) is present, it represents the linear alpha coverage of the material.
|
|
46709
|
-
* Otherwise, the alpha coverage is equal to 1.0. The material.alphaMode property specifies how alpha is interpreted.
|
|
46710
|
-
* The stored texels MUST NOT be premultiplied.
|
|
46711
|
-
* When undefined, the texture MUST be sampled as having 1.0 in all components.
|
|
46712
|
-
* @param texture -
|
|
47236
|
+
* @description Sets the base color texture.
|
|
47237
|
+
@details The first three components (RGB) MUST be encoded with the sRGB transfer function. They specify the base color of the material.
|
|
47238
|
+
* If the fourth component (A) is present, it represents the linear alpha coverage of the material.
|
|
47239
|
+
* Otherwise, the alpha coverage is equal to 1.0. The material.alphaMode property specifies how alpha is interpreted.
|
|
47240
|
+
* The stored texels MUST NOT be premultiplied.
|
|
47241
|
+
* When undefined, the texture MUST be sampled as having 1.0 in all components.
|
|
47242
|
+
* @param texture - The base color texture to set.
|
|
46713
47243
|
*/
|
|
46714
47244
|
|
|
46715
47245
|
setBaseColorTexture(texture: Systems.TextureInfo): void {
|
|
@@ -46722,8 +47252,8 @@ export namespace Systems {
|
|
|
46722
47252
|
}
|
|
46723
47253
|
|
|
46724
47254
|
/**
|
|
46725
|
-
* @description Gets the base color texture
|
|
46726
|
-
* @return
|
|
47255
|
+
* @description Gets the base color texture.
|
|
47256
|
+
* @return The base color texture.
|
|
46727
47257
|
*/
|
|
46728
47258
|
|
|
46729
47259
|
getBaseColorTexture(): Systems.TextureInfo {
|
|
@@ -46742,13 +47272,13 @@ export namespace Systems {
|
|
|
46742
47272
|
}
|
|
46743
47273
|
|
|
46744
47274
|
/**
|
|
46745
|
-
* @description Sets the metallic-roughness texture.
|
|
46746
|
-
|
|
46747
|
-
* The roughness values are sampled from the G channel.
|
|
46748
|
-
* These values MUST be encoded with a linear transfer function.
|
|
46749
|
-
* If other channels are present (R or A), they MUST be ignored for metallic-roughness calculations.
|
|
46750
|
-
* When undefined, the texture MUST be sampled as having 1.0 in G and B components.
|
|
46751
|
-
* @param texture -
|
|
47275
|
+
* @description Sets the metallic-roughness texture.
|
|
47276
|
+
@details The metalness values are sampled from the B channel.
|
|
47277
|
+
* The roughness values are sampled from the G channel.
|
|
47278
|
+
* These values MUST be encoded with a linear transfer function.
|
|
47279
|
+
* If other channels are present (R or A), they MUST be ignored for metallic-roughness calculations.
|
|
47280
|
+
* When undefined, the texture MUST be sampled as having 1.0 in G and B components.
|
|
47281
|
+
* @param texture - The metallic-roughness texture to set.
|
|
46752
47282
|
*/
|
|
46753
47283
|
|
|
46754
47284
|
setMetallicRoughnessTexture(texture: Systems.TextureInfo): void {
|
|
@@ -46761,8 +47291,8 @@ export namespace Systems {
|
|
|
46761
47291
|
}
|
|
46762
47292
|
|
|
46763
47293
|
/**
|
|
46764
|
-
* @description Gets the metallic-roughness texture
|
|
46765
|
-
* @return
|
|
47294
|
+
* @description Gets the metallic-roughness texture.
|
|
47295
|
+
* @return The metallic-roughness texture.
|
|
46766
47296
|
*/
|
|
46767
47297
|
|
|
46768
47298
|
getMetallicRoughnessTexture(): Systems.TextureInfo {
|
|
@@ -46781,12 +47311,12 @@ export namespace Systems {
|
|
|
46781
47311
|
}
|
|
46782
47312
|
|
|
46783
47313
|
/**
|
|
46784
|
-
* @description Sets the tangent space normal texture.
|
|
46785
|
-
|
|
46786
|
-
* Each texel represents the XYZ components of a normal vector in tangent space.
|
|
46787
|
-
* The normal vectors use the convention +X is right and +Y is up. +Z points toward the viewer.
|
|
46788
|
-
* If a fourth component (A) is present, it MUST be ignored. When undefined, the material does not have a tangent space normal texture.
|
|
46789
|
-
* @param texture -
|
|
47314
|
+
* @description Sets the tangent space normal texture.
|
|
47315
|
+
@details The texture encodes RGB components with linear transfer function.
|
|
47316
|
+
* Each texel represents the XYZ components of a normal vector in tangent space.
|
|
47317
|
+
* The normal vectors use the convention +X is right and +Y is up. +Z points toward the viewer.
|
|
47318
|
+
* If a fourth component (A) is present, it MUST be ignored. When undefined, the material does not have a tangent space normal texture.
|
|
47319
|
+
* @param texture - The normal texture to set.
|
|
46790
47320
|
*/
|
|
46791
47321
|
|
|
46792
47322
|
setNormalTexture(texture: Systems.TextureInfo): void {
|
|
@@ -46800,7 +47330,7 @@ export namespace Systems {
|
|
|
46800
47330
|
|
|
46801
47331
|
/**
|
|
46802
47332
|
* @description Gets the tangent space normal texture.
|
|
46803
|
-
* @return
|
|
47333
|
+
* @return The normal texture.
|
|
46804
47334
|
*/
|
|
46805
47335
|
|
|
46806
47336
|
getNormalTexture(): Systems.TextureInfo {
|
|
@@ -46819,12 +47349,12 @@ export namespace Systems {
|
|
|
46819
47349
|
}
|
|
46820
47350
|
|
|
46821
47351
|
/**
|
|
46822
|
-
* @description Sets the occlusion texture.
|
|
46823
|
-
|
|
46824
|
-
* Higher values indicate areas that receive full indirect lighting and lower values indicate no indirect lighting.
|
|
46825
|
-
* If other channels are present (GBA), they MUST be ignored for occlusion calculations.
|
|
46826
|
-
* When undefined, the material does not have an occlusion texture.
|
|
46827
|
-
* @param texture -
|
|
47352
|
+
* @description Sets the occlusion texture.
|
|
47353
|
+
@details The occlusion values are linearly sampled from the R channel.
|
|
47354
|
+
* Higher values indicate areas that receive full indirect lighting and lower values indicate no indirect lighting.
|
|
47355
|
+
* If other channels are present (GBA), they MUST be ignored for occlusion calculations.
|
|
47356
|
+
* When undefined, the material does not have an occlusion texture.
|
|
47357
|
+
* @param texture - The occlusion texture to set.
|
|
46828
47358
|
*/
|
|
46829
47359
|
|
|
46830
47360
|
setOcclusionTexture(texture: Systems.TextureInfo): void {
|
|
@@ -46837,8 +47367,8 @@ export namespace Systems {
|
|
|
46837
47367
|
}
|
|
46838
47368
|
|
|
46839
47369
|
/**
|
|
46840
|
-
* @description Gets the occlusion texture
|
|
46841
|
-
* @return
|
|
47370
|
+
* @description Gets the occlusion texture.
|
|
47371
|
+
* @return The occlusion texture.
|
|
46842
47372
|
*/
|
|
46843
47373
|
|
|
46844
47374
|
getOcclusionTexture(): Systems.TextureInfo {
|
|
@@ -46857,12 +47387,12 @@ export namespace Systems {
|
|
|
46857
47387
|
}
|
|
46858
47388
|
|
|
46859
47389
|
/**
|
|
46860
|
-
* @description Sets the emissive texture.
|
|
46861
|
-
|
|
46862
|
-
* This texture contains RGB components encoded with the sRGB transfer function.
|
|
46863
|
-
* If a fourth component (A) is present, it MUST be ignored.
|
|
46864
|
-
* When undefined, the texture MUST be sampled as having 1.0 in RGB components.
|
|
46865
|
-
* @param texture -
|
|
47390
|
+
* @description Sets the emissive texture.
|
|
47391
|
+
@details It controls the color and intensity of the light being emitted by the material.
|
|
47392
|
+
* This texture contains RGB components encoded with the sRGB transfer function.
|
|
47393
|
+
* If a fourth component (A) is present, it MUST be ignored.
|
|
47394
|
+
* When undefined, the texture MUST be sampled as having 1.0 in RGB components.
|
|
47395
|
+
* @param texture - The emissive texture to set.
|
|
46866
47396
|
*/
|
|
46867
47397
|
|
|
46868
47398
|
setEmissiveTexture(texture: Systems.TextureInfo): void {
|
|
@@ -46875,8 +47405,8 @@ export namespace Systems {
|
|
|
46875
47405
|
}
|
|
46876
47406
|
|
|
46877
47407
|
/**
|
|
46878
|
-
* @description Gets the emissive texture
|
|
46879
|
-
* @return
|
|
47408
|
+
* @description Gets the emissive texture.
|
|
47409
|
+
* @return The emissive texture.
|
|
46880
47410
|
*/
|
|
46881
47411
|
|
|
46882
47412
|
getEmissiveTexture(): Systems.TextureInfo {
|
|
@@ -46895,36 +47425,28 @@ export namespace Systems {
|
|
|
46895
47425
|
}
|
|
46896
47426
|
|
|
46897
47427
|
/**
|
|
46898
|
-
* @description Constructor which links the material to an asset
|
|
47428
|
+
* @description Constructor which links the material to an asset.
|
|
46899
47429
|
* @param name - The name of the material.
|
|
46900
|
-
* @param
|
|
46901
|
-
* @param
|
|
47430
|
+
* @param materialCollectionId - The asset collection which holds the associated material asset.
|
|
47431
|
+
* @param materialId - The asset where the material info is stored.
|
|
46902
47432
|
*/
|
|
46903
|
-
static
|
|
47433
|
+
static create_name_materialCollectionId_materialId(
|
|
46904
47434
|
name: string,
|
|
46905
|
-
|
|
46906
|
-
|
|
47435
|
+
materialCollectionId: string,
|
|
47436
|
+
materialId: string,
|
|
46907
47437
|
): GLTFMaterial {
|
|
46908
47438
|
var _ptr = Module._malloc(8);
|
|
46909
47439
|
Module.ccall(
|
|
46910
47440
|
"csp_systems_GLTFMaterial_Ctor_StringRC_StringRC_StringRC",
|
|
46911
47441
|
"void",
|
|
46912
47442
|
["number", "string", "string", "string"],
|
|
46913
|
-
[_ptr, name,
|
|
47443
|
+
[_ptr, name, materialCollectionId, materialId],
|
|
46914
47444
|
);
|
|
46915
47445
|
var _nPtr = getNativePointer(_ptr);
|
|
46916
47446
|
|
|
46917
47447
|
return new GLTFMaterial(_nPtr);
|
|
46918
47448
|
}
|
|
46919
47449
|
|
|
46920
|
-
static create(): GLTFMaterial {
|
|
46921
|
-
var _ptr = Module._malloc(8);
|
|
46922
|
-
Module.ccall("csp_systems_GLTFMaterial_Ctor", "void", ["number"], [_ptr]);
|
|
46923
|
-
var _nPtr = getNativePointer(_ptr);
|
|
46924
|
-
|
|
46925
|
-
return new GLTFMaterial(_nPtr);
|
|
46926
|
-
}
|
|
46927
|
-
|
|
46928
47450
|
delete(): void {
|
|
46929
47451
|
if (this.ownsPointer && !this.disposed) {
|
|
46930
47452
|
Module.ccall(
|
|
@@ -46937,15 +47459,23 @@ export namespace Systems {
|
|
|
46937
47459
|
this.disposed = true;
|
|
46938
47460
|
}
|
|
46939
47461
|
}
|
|
47462
|
+
|
|
47463
|
+
static create(): GLTFMaterial {
|
|
47464
|
+
var _ptr = Module._malloc(8);
|
|
47465
|
+
Module.ccall("csp_systems_GLTFMaterial_Ctor", "void", ["number"], [_ptr]);
|
|
47466
|
+
var _nPtr = getNativePointer(_ptr);
|
|
47467
|
+
|
|
47468
|
+
return new GLTFMaterial(_nPtr);
|
|
47469
|
+
}
|
|
46940
47470
|
}
|
|
46941
47471
|
}
|
|
46942
47472
|
|
|
46943
47473
|
export namespace Systems {
|
|
46944
47474
|
/**
|
|
46945
47475
|
@ingroup Asset System
|
|
46946
|
-
* @description Data class used to contain information when attempting to download
|
|
47476
|
+
* @description Data class used to contain information when attempting to download LOD chain data.
|
|
46947
47477
|
*/
|
|
46948
|
-
export class
|
|
47478
|
+
export class LODChainResult
|
|
46949
47479
|
extends Systems.ResultBase
|
|
46950
47480
|
implements INativeResource
|
|
46951
47481
|
{
|
|
@@ -46956,9 +47486,9 @@ export namespace Systems {
|
|
|
46956
47486
|
|
|
46957
47487
|
static fromResultBase(
|
|
46958
47488
|
baseInstance: Systems.ResultBase,
|
|
46959
|
-
): Systems.
|
|
47489
|
+
): Systems.LODChainResult {
|
|
46960
47490
|
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
46961
|
-
return new Systems.
|
|
47491
|
+
return new Systems.LODChainResult(
|
|
46962
47492
|
new NativePointer(
|
|
46963
47493
|
nativeClassWrapper.pointer,
|
|
46964
47494
|
nativeClassWrapper.ownsPointer,
|
|
@@ -46967,19 +47497,19 @@ export namespace Systems {
|
|
|
46967
47497
|
}
|
|
46968
47498
|
|
|
46969
47499
|
/**
|
|
46970
|
-
* @description Retreives the
|
|
47500
|
+
* @description Retreives the LODChain from the result.
|
|
46971
47501
|
*/
|
|
46972
47502
|
|
|
46973
|
-
|
|
47503
|
+
getLODChain(): Systems.LODChain {
|
|
46974
47504
|
var _ret = Module._malloc(8);
|
|
46975
47505
|
|
|
46976
47506
|
Module.ccall(
|
|
46977
|
-
"
|
|
47507
|
+
"csp_systems_LODChainResult_GetLODChainC_LODChainRC",
|
|
46978
47508
|
"void",
|
|
46979
47509
|
["number", "number"],
|
|
46980
47510
|
[_ret, this.pointer],
|
|
46981
47511
|
);
|
|
46982
|
-
var _nPtr = new Systems.
|
|
47512
|
+
var _nPtr = new Systems.LODChain(getNativePointer(_ret));
|
|
46983
47513
|
Module._free(_ret);
|
|
46984
47514
|
|
|
46985
47515
|
return _nPtr;
|
|
@@ -46988,7 +47518,7 @@ export namespace Systems {
|
|
|
46988
47518
|
delete(): void {
|
|
46989
47519
|
if (this.ownsPointer && !this.disposed) {
|
|
46990
47520
|
Module.ccall(
|
|
46991
|
-
"
|
|
47521
|
+
"csp_systems_LODChainResult_Dtor",
|
|
46992
47522
|
"void",
|
|
46993
47523
|
["number"],
|
|
46994
47524
|
[this.pointer],
|
|
@@ -47003,9 +47533,9 @@ export namespace Systems {
|
|
|
47003
47533
|
export namespace Systems {
|
|
47004
47534
|
/**
|
|
47005
47535
|
@ingroup Asset System
|
|
47006
|
-
* @description
|
|
47536
|
+
* @description Result data class that contains downloaded material data.
|
|
47007
47537
|
*/
|
|
47008
|
-
export class
|
|
47538
|
+
export class MaterialResult
|
|
47009
47539
|
extends Systems.ResultBase
|
|
47010
47540
|
implements INativeResource
|
|
47011
47541
|
{
|
|
@@ -47016,9 +47546,9 @@ export namespace Systems {
|
|
|
47016
47546
|
|
|
47017
47547
|
static fromResultBase(
|
|
47018
47548
|
baseInstance: Systems.ResultBase,
|
|
47019
|
-
): Systems.
|
|
47549
|
+
): Systems.MaterialResult {
|
|
47020
47550
|
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
47021
|
-
return new Systems.
|
|
47551
|
+
return new Systems.MaterialResult(
|
|
47022
47552
|
new NativePointer(
|
|
47023
47553
|
nativeClassWrapper.pointer,
|
|
47024
47554
|
nativeClassWrapper.ownsPointer,
|
|
@@ -47027,23 +47557,20 @@ export namespace Systems {
|
|
|
47027
47557
|
}
|
|
47028
47558
|
|
|
47029
47559
|
/**
|
|
47030
|
-
* @description
|
|
47560
|
+
* @description Retrieves the Material from the result.
|
|
47561
|
+
* @return Returns a pointer to the Material object. The caller should take ownership of the pointer.
|
|
47031
47562
|
*/
|
|
47032
47563
|
|
|
47033
|
-
|
|
47564
|
+
getMaterial(): Systems.Material {
|
|
47034
47565
|
var _ret = Module._malloc(8);
|
|
47035
47566
|
|
|
47036
47567
|
Module.ccall(
|
|
47037
|
-
"
|
|
47568
|
+
"csp_systems_MaterialResult_GetMaterialC_MaterialPC",
|
|
47038
47569
|
"void",
|
|
47039
47570
|
["number", "number"],
|
|
47040
47571
|
[_ret, this.pointer],
|
|
47041
47572
|
);
|
|
47042
|
-
var _nPtr = new
|
|
47043
|
-
getNativePointer(_ret),
|
|
47044
|
-
csp_systems_GLTFMaterialFactory,
|
|
47045
|
-
"csp_systems_GLTFMaterial",
|
|
47046
|
-
);
|
|
47573
|
+
var _nPtr = new Systems.Material(getNativePointer(_ret));
|
|
47047
47574
|
Module._free(_ret);
|
|
47048
47575
|
|
|
47049
47576
|
return _nPtr;
|
|
@@ -47052,7 +47579,7 @@ export namespace Systems {
|
|
|
47052
47579
|
delete(): void {
|
|
47053
47580
|
if (this.ownsPointer && !this.disposed) {
|
|
47054
47581
|
Module.ccall(
|
|
47055
|
-
"
|
|
47582
|
+
"csp_systems_MaterialResult_Dtor",
|
|
47056
47583
|
"void",
|
|
47057
47584
|
["number"],
|
|
47058
47585
|
[this.pointer],
|
|
@@ -47067,9 +47594,9 @@ export namespace Systems {
|
|
|
47067
47594
|
export namespace Systems {
|
|
47068
47595
|
/**
|
|
47069
47596
|
@ingroup Asset System
|
|
47070
|
-
* @description
|
|
47597
|
+
* @description Result data class that contains a collection of downloaded material data.
|
|
47071
47598
|
*/
|
|
47072
|
-
export class
|
|
47599
|
+
export class MaterialsResult
|
|
47073
47600
|
extends Systems.ResultBase
|
|
47074
47601
|
implements INativeResource
|
|
47075
47602
|
{
|
|
@@ -47080,9 +47607,9 @@ export namespace Systems {
|
|
|
47080
47607
|
|
|
47081
47608
|
static fromResultBase(
|
|
47082
47609
|
baseInstance: Systems.ResultBase,
|
|
47083
|
-
): Systems.
|
|
47610
|
+
): Systems.MaterialsResult {
|
|
47084
47611
|
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
47085
|
-
return new Systems.
|
|
47612
|
+
return new Systems.MaterialsResult(
|
|
47086
47613
|
new NativePointer(
|
|
47087
47614
|
nativeClassWrapper.pointer,
|
|
47088
47615
|
nativeClassWrapper.ownsPointer,
|
|
@@ -47091,19 +47618,25 @@ export namespace Systems {
|
|
|
47091
47618
|
}
|
|
47092
47619
|
|
|
47093
47620
|
/**
|
|
47094
|
-
* @description Retreives
|
|
47621
|
+
* @description Retreives an Array of Materials from the result.
|
|
47622
|
+
* @return Returns a const pointer to an Array of Material class pointers. The caller should take ownership of the
|
|
47623
|
+
* pointer.
|
|
47095
47624
|
*/
|
|
47096
47625
|
|
|
47097
|
-
|
|
47626
|
+
getMaterials(): Common.Array<Systems.Material> {
|
|
47098
47627
|
var _ret = Module._malloc(8);
|
|
47099
47628
|
|
|
47100
47629
|
Module.ccall(
|
|
47101
|
-
"
|
|
47630
|
+
"csp_systems_MaterialsResult_GetMaterialsC_ArrayPC",
|
|
47102
47631
|
"void",
|
|
47103
47632
|
["number", "number"],
|
|
47104
47633
|
[_ret, this.pointer],
|
|
47105
47634
|
);
|
|
47106
|
-
var _nPtr = new Systems.
|
|
47635
|
+
var _nPtr = new Common.Array<Systems.Material>(
|
|
47636
|
+
getNativePointer(_ret),
|
|
47637
|
+
csp_systems_MaterialFactory,
|
|
47638
|
+
"csp_systems_Material",
|
|
47639
|
+
);
|
|
47107
47640
|
Module._free(_ret);
|
|
47108
47641
|
|
|
47109
47642
|
return _nPtr;
|
|
@@ -47112,7 +47645,7 @@ export namespace Systems {
|
|
|
47112
47645
|
delete(): void {
|
|
47113
47646
|
if (this.ownsPointer && !this.disposed) {
|
|
47114
47647
|
Module.ccall(
|
|
47115
|
-
"
|
|
47648
|
+
"csp_systems_MaterialsResult_Dtor",
|
|
47116
47649
|
"void",
|
|
47117
47650
|
["number"],
|
|
47118
47651
|
[this.pointer],
|
|
@@ -57450,36 +57983,36 @@ export namespace Common {
|
|
|
57450
57983
|
return _inst;
|
|
57451
57984
|
}
|
|
57452
57985
|
|
|
57453
|
-
static
|
|
57986
|
+
static ofcsp_systems_LODAsset(): Array<Systems.LODAsset> {
|
|
57454
57987
|
var _ret = Module._malloc(8);
|
|
57455
57988
|
Module.ccall(
|
|
57456
|
-
"
|
|
57989
|
+
"csp_common_Array_Ctor_csp_systems_LODAsset",
|
|
57457
57990
|
"void",
|
|
57458
57991
|
["number"],
|
|
57459
57992
|
[_ret],
|
|
57460
57993
|
);
|
|
57461
|
-
var _inst = new Array<Systems.
|
|
57994
|
+
var _inst = new Array<Systems.LODAsset>(
|
|
57462
57995
|
getNativePointer(_ret),
|
|
57463
|
-
|
|
57464
|
-
"
|
|
57996
|
+
csp_systems_LODAssetFactory,
|
|
57997
|
+
"csp_systems_LODAsset",
|
|
57465
57998
|
);
|
|
57466
57999
|
Module._free(_ret);
|
|
57467
58000
|
|
|
57468
58001
|
return _inst;
|
|
57469
58002
|
}
|
|
57470
58003
|
|
|
57471
|
-
static
|
|
58004
|
+
static ofcsp_systems_Material(): Array<Systems.Material> {
|
|
57472
58005
|
var _ret = Module._malloc(8);
|
|
57473
58006
|
Module.ccall(
|
|
57474
|
-
"
|
|
58007
|
+
"csp_common_Array_Ctor_csp_systems_Material",
|
|
57475
58008
|
"void",
|
|
57476
58009
|
["number"],
|
|
57477
58010
|
[_ret],
|
|
57478
58011
|
);
|
|
57479
|
-
var _inst = new Array<Systems.
|
|
58012
|
+
var _inst = new Array<Systems.Material>(
|
|
57480
58013
|
getNativePointer(_ret),
|
|
57481
|
-
|
|
57482
|
-
"
|
|
58014
|
+
csp_systems_MaterialFactory,
|
|
58015
|
+
"csp_systems_Material",
|
|
57483
58016
|
);
|
|
57484
58017
|
Module._free(_ret);
|
|
57485
58018
|
|
|
@@ -58194,40 +58727,40 @@ export namespace Common {
|
|
|
58194
58727
|
return _inst;
|
|
58195
58728
|
}
|
|
58196
58729
|
|
|
58197
|
-
static
|
|
58730
|
+
static ofcsp_systems_LODAsset_number(
|
|
58198
58731
|
size: number,
|
|
58199
|
-
): Array<Systems.
|
|
58732
|
+
): Array<Systems.LODAsset> {
|
|
58200
58733
|
var _ret = Module._malloc(8);
|
|
58201
58734
|
Module.ccall(
|
|
58202
|
-
"
|
|
58735
|
+
"csp_common_Array_Conv_size_tC_csp_systems_LODAsset",
|
|
58203
58736
|
"void",
|
|
58204
58737
|
["number", "number"],
|
|
58205
58738
|
[_ret, size],
|
|
58206
58739
|
);
|
|
58207
|
-
var _inst = new Array<Systems.
|
|
58740
|
+
var _inst = new Array<Systems.LODAsset>(
|
|
58208
58741
|
getNativePointer(_ret),
|
|
58209
|
-
|
|
58210
|
-
"
|
|
58742
|
+
csp_systems_LODAssetFactory,
|
|
58743
|
+
"csp_systems_LODAsset",
|
|
58211
58744
|
);
|
|
58212
58745
|
Module._free(_ret);
|
|
58213
58746
|
|
|
58214
58747
|
return _inst;
|
|
58215
58748
|
}
|
|
58216
58749
|
|
|
58217
|
-
static
|
|
58750
|
+
static ofcsp_systems_Material_number(
|
|
58218
58751
|
size: number,
|
|
58219
|
-
): Array<Systems.
|
|
58752
|
+
): Array<Systems.Material> {
|
|
58220
58753
|
var _ret = Module._malloc(8);
|
|
58221
58754
|
Module.ccall(
|
|
58222
|
-
"
|
|
58755
|
+
"csp_common_Array_Conv_size_tC_csp_systems_Material",
|
|
58223
58756
|
"void",
|
|
58224
58757
|
["number", "number"],
|
|
58225
58758
|
[_ret, size],
|
|
58226
58759
|
);
|
|
58227
|
-
var _inst = new Array<Systems.
|
|
58760
|
+
var _inst = new Array<Systems.Material>(
|
|
58228
58761
|
getNativePointer(_ret),
|
|
58229
|
-
|
|
58230
|
-
"
|
|
58762
|
+
csp_systems_MaterialFactory,
|
|
58763
|
+
"csp_systems_Material",
|
|
58231
58764
|
);
|
|
58232
58765
|
Module._free(_ret);
|
|
58233
58766
|
|