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.
@@ -561,14 +561,23 @@ function csp_systems_EAssetCollectionTypeFactory(nativePointer) {
561
561
  }
562
562
  ProxyClassFactories["csp_systems_EAssetCollectionType"] =
563
563
  csp_systems_EAssetCollectionTypeFactory;
564
+ function csp_systems_EShaderTypeFactory(nativePointer) {
565
+ return nativePointer.pointer;
566
+ }
567
+ ProxyClassFactories["csp_systems_EShaderType"] = csp_systems_EShaderTypeFactory;
564
568
  function csp_systems_EAlphaModeFactory(nativePointer) {
565
569
  return nativePointer.pointer;
566
570
  }
567
571
  ProxyClassFactories["csp_systems_EAlphaMode"] = csp_systems_EAlphaModeFactory;
568
- function csp_systems_EShaderTypeFactory(nativePointer) {
572
+ function csp_systems_EBlendModeFactory(nativePointer) {
569
573
  return nativePointer.pointer;
570
574
  }
571
- ProxyClassFactories["csp_systems_EShaderType"] = csp_systems_EShaderTypeFactory;
575
+ ProxyClassFactories["csp_systems_EBlendMode"] = csp_systems_EBlendModeFactory;
576
+ function csp_systems_EColorChannelFactory(nativePointer) {
577
+ return nativePointer.pointer;
578
+ }
579
+ ProxyClassFactories["csp_systems_EColorChannel"] =
580
+ csp_systems_EColorChannelFactory;
572
581
  function csp_systems_ETextureResourceTypeFactory(nativePointer) {
573
582
  return nativePointer.pointer;
574
583
  }
@@ -1185,6 +1194,11 @@ function csp_systems_HTTPHeadersResultFactory(nativePointer) {
1185
1194
  }
1186
1195
  ProxyClassFactories["csp_systems_HTTPHeadersResult"] =
1187
1196
  csp_systems_HTTPHeadersResultFactory;
1197
+ function csp_systems_AlphaVideoMaterialFactory(nativePointer) {
1198
+ return new Systems.AlphaVideoMaterial(nativePointer);
1199
+ }
1200
+ ProxyClassFactories["csp_systems_AlphaVideoMaterial"] =
1201
+ csp_systems_AlphaVideoMaterialFactory;
1188
1202
  function csp_systems_AssetResultFactory(nativePointer) {
1189
1203
  return new Systems.AssetResult(nativePointer);
1190
1204
  }
@@ -1222,21 +1236,21 @@ function csp_systems_GLTFMaterialFactory(nativePointer) {
1222
1236
  }
1223
1237
  ProxyClassFactories["csp_systems_GLTFMaterial"] =
1224
1238
  csp_systems_GLTFMaterialFactory;
1225
- function csp_systems_GLTFMaterialResultFactory(nativePointer) {
1226
- return new Systems.GLTFMaterialResult(nativePointer);
1227
- }
1228
- ProxyClassFactories["csp_systems_GLTFMaterialResult"] =
1229
- csp_systems_GLTFMaterialResultFactory;
1230
- function csp_systems_GLTFMaterialsResultFactory(nativePointer) {
1231
- return new Systems.GLTFMaterialsResult(nativePointer);
1232
- }
1233
- ProxyClassFactories["csp_systems_GLTFMaterialsResult"] =
1234
- csp_systems_GLTFMaterialsResultFactory;
1235
1239
  function csp_systems_LODChainResultFactory(nativePointer) {
1236
1240
  return new Systems.LODChainResult(nativePointer);
1237
1241
  }
1238
1242
  ProxyClassFactories["csp_systems_LODChainResult"] =
1239
1243
  csp_systems_LODChainResultFactory;
1244
+ function csp_systems_MaterialResultFactory(nativePointer) {
1245
+ return new Systems.MaterialResult(nativePointer);
1246
+ }
1247
+ ProxyClassFactories["csp_systems_MaterialResult"] =
1248
+ csp_systems_MaterialResultFactory;
1249
+ function csp_systems_MaterialsResultFactory(nativePointer) {
1250
+ return new Systems.MaterialsResult(nativePointer);
1251
+ }
1252
+ ProxyClassFactories["csp_systems_MaterialsResult"] =
1253
+ csp_systems_MaterialsResultFactory;
1240
1254
  function csp_systems_ProductInfoResultFactory(nativePointer) {
1241
1255
  return new Systems.ProductInfoResult(nativePointer);
1242
1256
  }
@@ -1588,16 +1602,16 @@ function csp_common_Array_csp_systems_EAssetTypeFactory(nativePointer) {
1588
1602
  }
1589
1603
  ProxyClassFactories["csp_common_Array_csp_systems_EAssetType"] =
1590
1604
  csp_common_Array_csp_systems_EAssetTypeFactory;
1591
- function csp_common_Array_csp_systems_GLTFMaterialFactory(nativePointer) {
1592
- return new Common.Array(nativePointer, csp_systems_GLTFMaterialFactory, "csp_systems_GLTFMaterial");
1593
- }
1594
- ProxyClassFactories["csp_common_Array_csp_systems_GLTFMaterial"] =
1595
- csp_common_Array_csp_systems_GLTFMaterialFactory;
1596
1605
  function csp_common_Array_csp_systems_LODAssetFactory(nativePointer) {
1597
1606
  return new Common.Array(nativePointer, csp_systems_LODAssetFactory, "csp_systems_LODAsset");
1598
1607
  }
1599
1608
  ProxyClassFactories["csp_common_Array_csp_systems_LODAsset"] =
1600
1609
  csp_common_Array_csp_systems_LODAssetFactory;
1610
+ function csp_common_Array_csp_systems_MaterialFactory(nativePointer) {
1611
+ return new Common.Array(nativePointer, csp_systems_MaterialFactory, "csp_systems_Material");
1612
+ }
1613
+ ProxyClassFactories["csp_common_Array_csp_systems_Material"] =
1614
+ csp_common_Array_csp_systems_MaterialFactory;
1601
1615
  function csp_common_Array_csp_systems_VariantOptionInfoFactory(nativePointer) {
1602
1616
  return new Common.Array(nativePointer, csp_systems_VariantOptionInfoFactory, "csp_systems_VariantOptionInfo");
1603
1617
  }
@@ -2746,9 +2760,21 @@ export var Multiplayer;
2746
2760
  })(Systems || (Systems = {}));
2747
2761
  (function (Systems) {
2748
2762
  /**
2749
- * @description Defines how to alpha value is interpreted
2750
- * The alpha value is taken from the fourth component of the base color for metallic-roughness material model
2751
- */
2763
+ * @description Enum representing the shader type of a material.
2764
+ @details This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
2765
+ */
2766
+ let EShaderType;
2767
+ (function (EShaderType) {
2768
+ EShaderType[EShaderType["Standard"] = 0] = "Standard";
2769
+ EShaderType[EShaderType["AlphaVideo"] = 1] = "AlphaVideo";
2770
+ })(EShaderType = Systems.EShaderType || (Systems.EShaderType = {}));
2771
+ })(Systems || (Systems = {}));
2772
+ (function (Systems) {
2773
+ /**
2774
+ * @description Defines how the alpha value of a material is interpreted.
2775
+ @details The alpha value is taken from the fourth component of the base color for metallic-roughness material model.
2776
+ * This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
2777
+ */
2752
2778
  let EAlphaMode;
2753
2779
  (function (EAlphaMode) {
2754
2780
  EAlphaMode[EAlphaMode["Opaque"] = 0] = "Opaque";
@@ -2758,12 +2784,30 @@ export var Multiplayer;
2758
2784
  })(Systems || (Systems = {}));
2759
2785
  (function (Systems) {
2760
2786
  /**
2761
- * @description Enum representing the shader type of a material. Currently not in use.
2762
- */
2763
- let EShaderType;
2764
- (function (EShaderType) {
2765
- EShaderType[EShaderType["Standard"] = 0] = "Standard";
2766
- })(EShaderType = Systems.EShaderType || (Systems.EShaderType = {}));
2787
+ * @description Defines how the alpha value of a material is interpreted.
2788
+ @details The alpha value is taken from the fourth component of the base color for metallic-roughness material model, unless the shader supports
2789
+ * EColorChannel.
2790
+ * This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
2791
+ */
2792
+ let EBlendMode;
2793
+ (function (EBlendMode) {
2794
+ EBlendMode[EBlendMode["Normal"] = 0] = "Normal";
2795
+ EBlendMode[EBlendMode["Additive"] = 1] = "Additive";
2796
+ })(EBlendMode = Systems.EBlendMode || (Systems.EBlendMode = {}));
2797
+ })(Systems || (Systems = {}));
2798
+ (function (Systems) {
2799
+ /**
2800
+ * @description Defines where the alpha value is read from.
2801
+ @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.
2802
+ * This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
2803
+ */
2804
+ let EColorChannel;
2805
+ (function (EColorChannel) {
2806
+ EColorChannel[EColorChannel["R"] = 0] = "R";
2807
+ EColorChannel[EColorChannel["G"] = 1] = "G";
2808
+ EColorChannel[EColorChannel["B"] = 2] = "B";
2809
+ EColorChannel[EColorChannel["A"] = 3] = "A";
2810
+ })(EColorChannel = Systems.EColorChannel || (Systems.EColorChannel = {}));
2767
2811
  })(Systems || (Systems = {}));
2768
2812
  (function (Systems) {
2769
2813
  /**
@@ -12403,7 +12447,7 @@ export class CSPFoundation {
12403
12447
  })(Systems || (Systems = {}));
12404
12448
  (function (Systems) {
12405
12449
  /**
12406
- @ingroup Asset System
12450
+ @ingroup Asset System.
12407
12451
  * @description Base class for a material.
12408
12452
  */
12409
12453
  class Material extends NativeClassWrapper {
@@ -12412,8 +12456,8 @@ export class CSPFoundation {
12412
12456
  super(pointer);
12413
12457
  }
12414
12458
  /**
12415
- * @description Gets the user-defined name of the material
12416
- * @return Csp::common::string&
12459
+ * @description Gets the user-defined name of the material.
12460
+ * @return Returns the material name.
12417
12461
  */
12418
12462
  getName() {
12419
12463
  let _result = Module.ccall("csp_systems_Material_GetNameC_StringRC", "number", ["number"], [this.pointer]);
@@ -12423,8 +12467,24 @@ export class CSPFoundation {
12423
12467
  return _result;
12424
12468
  }
12425
12469
  /**
12426
- * @description Gets the collection id for the material
12427
- * @return Const csp::common::string&
12470
+ * @description Gets the shader type of the material.
12471
+ * @return Returns the shader type.
12472
+ */
12473
+ getShaderType() {
12474
+ let _result = Module.ccall("csp_systems_Material_GetShaderTypeC_EShaderTypeC", "number", ["number"], [this.pointer]);
12475
+ return _result;
12476
+ }
12477
+ /**
12478
+ * @description Gets the version of the material.
12479
+ * @return Returns the version of the material.
12480
+ */
12481
+ getVersion() {
12482
+ let _result = Module.ccall("csp_systems_Material_GetVersionC_intC", "number", ["number"], [this.pointer]);
12483
+ return _result;
12484
+ }
12485
+ /**
12486
+ * @description Gets the collection id for the material.
12487
+ * @return Returns the collection id.
12428
12488
  */
12429
12489
  getMaterialCollectionId() {
12430
12490
  let _result = Module.ccall("csp_systems_Material_GetMaterialCollectionIdC_StringRC", "number", ["number"], [this.pointer]);
@@ -12434,8 +12494,8 @@ export class CSPFoundation {
12434
12494
  return _result;
12435
12495
  }
12436
12496
  /**
12437
- * @description Gets the id for the material
12438
- * @return Const csp::common::string&
12497
+ * @description Gets the id for the material.
12498
+ * @return Returns the material id.
12439
12499
  */
12440
12500
  getMaterialId() {
12441
12501
  let _result = Module.ccall("csp_systems_Material_GetMaterialIdC_StringRC", "number", ["number"], [this.pointer]);
@@ -12445,10 +12505,10 @@ export class CSPFoundation {
12445
12505
  return _result;
12446
12506
  }
12447
12507
  /**
12448
- * @description Constructor which links the material to an asset
12508
+ * @description Constructs a material bound to an AssetCollection and Asset.
12449
12509
  * @param name - The name of the material.
12450
- * @param materialCollectionId - The asset collection where the material info is stored
12451
- * @param materialId - The asset where the material info is stored
12510
+ * @param materialCollectionId - The asset collection which references the associated material asset.
12511
+ * @param materialId - The asset where the material info is stored.
12452
12512
  */
12453
12513
  static create_name_materialCollectionId_materialId(name, materialCollectionId, materialId) {
12454
12514
  var _ptr = Module._malloc(8);
@@ -12456,9 +12516,17 @@ export class CSPFoundation {
12456
12516
  var _nPtr = getNativePointer(_ptr);
12457
12517
  return new Material(_nPtr);
12458
12518
  }
12459
- static create() {
12519
+ /**
12520
+ * @description Constructs a versioned material bound to an AssetCollection and Asset.
12521
+ * @param name - The name of the material.
12522
+ * @param materialCollectionId - The asset collection which references the associated material asset.
12523
+ * @param materialId - The asset where the material info is stored.
12524
+ * @param type - The material shader type.
12525
+ * @param version - The material version.
12526
+ */
12527
+ static create_name_materialCollectionId_materialId_type_version(name, materialCollectionId, materialId, type, version) {
12460
12528
  var _ptr = Module._malloc(8);
12461
- Module.ccall("csp_systems_Material_Ctor", "void", ["number"], [_ptr]);
12529
+ Module.ccall("csp_systems_Material_Ctor_StringRC_StringRC_StringRC_EShaderType_intC", "void", ["number", "string", "string", "string", "number", "number"], [_ptr, name, materialCollectionId, materialId, type, version]);
12462
12530
  var _nPtr = getNativePointer(_ptr);
12463
12531
  return new Material(_nPtr);
12464
12532
  }
@@ -12468,6 +12536,12 @@ export class CSPFoundation {
12468
12536
  this.disposed = true;
12469
12537
  }
12470
12538
  }
12539
+ static create() {
12540
+ var _ptr = Module._malloc(8);
12541
+ Module.ccall("csp_systems_Material_Ctor", "void", ["number"], [_ptr]);
12542
+ var _nPtr = getNativePointer(_ptr);
12543
+ return new Material(_nPtr);
12544
+ }
12471
12545
  }
12472
12546
  Systems.Material = Material;
12473
12547
  })(Systems || (Systems = {}));
@@ -20878,6 +20952,220 @@ export class CSPFoundation {
20878
20952
  }
20879
20953
  Systems.HTTPHeadersResult = HTTPHeadersResult;
20880
20954
  })(Systems || (Systems = {}));
20955
+ (function (Systems) {
20956
+ /**
20957
+ @ingroup Asset System
20958
+ * @description Data class which represents an Alpha Video material.
20959
+ */
20960
+ class AlphaVideoMaterial extends Systems.Material {
20961
+ /** @internal */
20962
+ constructor(pointer) {
20963
+ super(pointer);
20964
+ }
20965
+ static fromMaterial(baseInstance) {
20966
+ const nativeClassWrapper = baseInstance;
20967
+ return new Systems.AlphaVideoMaterial(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
20968
+ }
20969
+ /**
20970
+ * @description Sets the color texture.
20971
+ @details The first three components (RGB) MUST be encoded with the sRGB transfer function. They specify the color of the material.
20972
+ * If the fourth component (A) is present, it represents the linear alpha coverage of the material.
20973
+ * Otherwise, the alpha coverage is equal to 1.0.
20974
+ * The material.blendMode property defines how the alpha is blended when alphaMode is set to BLEND.
20975
+ * The material.readAlphaFromChannel property defines which color channel to read the alpha values from.
20976
+ * The stored texels MUST NOT be premultiplied.
20977
+ * @param texture - The material color texture.
20978
+ @pre If the fourth component (A) is undefined, the texture MUST be sampled as having 1.0 in all components.
20979
+ */
20980
+ setColorTexture(texture) {
20981
+ Module.ccall("csp_systems_AlphaVideoMaterial_SetColorTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
20982
+ }
20983
+ /**
20984
+ * @description Gets the color texture.
20985
+ * @return The material color texture.
20986
+ */
20987
+ getColorTexture() {
20988
+ var _ret = Module._malloc(8);
20989
+ Module.ccall("csp_systems_AlphaVideoMaterial_GetColorTextureC_TextureInfoRC", "void", ["number", "number"], [_ret, this.pointer]);
20990
+ var _nPtr = new Systems.TextureInfo(getNativePointer(_ret));
20991
+ Module._free(_ret);
20992
+ return _nPtr;
20993
+ }
20994
+ /**
20995
+ * @description Sets the doubleSided property which specifies whether the material is double sided.
20996
+ @details When this value is false, back-face culling is enabled, i.e., only front-facing triangles are rendered.
20997
+ * When this value is true, back-face culling is disabled and double sided lighting is enabled.
20998
+ * @param doubleSided - The double sided value.
20999
+ */
21000
+ setDoubleSided(doubleSided) {
21001
+ Module.ccall("csp_systems_AlphaVideoMaterial_SetDoubleSided_void_bool", "void", ["number", "boolean"], [this.pointer, doubleSided]);
21002
+ }
21003
+ /**
21004
+ * @description Gets the double sided value.
21005
+ * @return The double sided value.
21006
+ */
21007
+ getDoubleSided() {
21008
+ let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetDoubleSidedC_bool", "boolean", ["number"], [this.pointer]);
21009
+ return _result;
21010
+ }
21011
+ /**
21012
+ * @description Sets whether the material is emissive, if not material should be lit by the scene lighting.
21013
+ * @param isEmissive - The emissive value.
21014
+ */
21015
+ setIsEmissive(isEmissive) {
21016
+ Module.ccall("csp_systems_AlphaVideoMaterial_SetIsEmissive_void_bool", "void", ["number", "boolean"], [this.pointer, isEmissive]);
21017
+ }
21018
+ /**
21019
+ * @description Gets whether the material is emissive, if not material should be lit by the scene lighting.
21020
+ * @return Bool
21021
+ */
21022
+ getIsEmissive() {
21023
+ let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetIsEmissiveC_bool", "boolean", ["number"], [this.pointer]);
21024
+ return _result;
21025
+ }
21026
+ /**
21027
+ * @description Sets the color channel to read the alpha values from.
21028
+ * @param colorChannel - The color channel to read the alpha values from.
21029
+ */
21030
+ setReadAlphaFromChannel(colorChannel) {
21031
+ Module.ccall("csp_systems_AlphaVideoMaterial_SetReadAlphaFromChannel_void_EColorChannel", "void", ["number", "number"], [this.pointer, colorChannel]);
21032
+ }
21033
+ /**
21034
+ * @description Gets the color channel to read the alpha values from.
21035
+ * @return The color channel to read the alpha values from.
21036
+ */
21037
+ getReadAlphaFromChannel() {
21038
+ let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetReadAlphaFromChannelC_EColorChannel", "number", ["number"], [this.pointer]);
21039
+ return _result;
21040
+ }
21041
+ /**
21042
+ * @description Sets the mode to use for alpha blending.
21043
+ * @param mode - The mode to use for alpha blending.
21044
+ */
21045
+ setBlendMode(mode) {
21046
+ Module.ccall("csp_systems_AlphaVideoMaterial_SetBlendMode_void_EBlendMode", "void", ["number", "number"], [this.pointer, mode]);
21047
+ }
21048
+ /**
21049
+ * @description Gets the alpha blend mode.
21050
+ * @return The alpha blend mode.
21051
+ */
21052
+ getBlendMode() {
21053
+ let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetBlendModeC_EBlendMode", "number", ["number"], [this.pointer]);
21054
+ return _result;
21055
+ }
21056
+ /**
21057
+ * @description Sets the fresnel factor.
21058
+ * @param factor - The fresnel factor.
21059
+ */
21060
+ setFresnelFactor(factor) {
21061
+ assert(factor >= Limits.FLOAT_MIN);
21062
+ assert(factor <= Limits.FLOAT_MAX);
21063
+ Module.ccall("csp_systems_AlphaVideoMaterial_SetFresnelFactor_void_float", "void", ["number", "number"], [this.pointer, factor]);
21064
+ }
21065
+ /**
21066
+ * @description Gets the fresnel factor.
21067
+ * @return The fresnel factor.
21068
+ */
21069
+ getFresnelFactor() {
21070
+ let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetFresnelFactorC_float", "number", ["number"], [this.pointer]);
21071
+ return _result;
21072
+ }
21073
+ /**
21074
+ * @description Set the Material tint.
21075
+ * @param tint - The tint value.
21076
+ */
21077
+ setTint(tint) {
21078
+ Module.ccall("csp_systems_AlphaVideoMaterial_SetTint_void_Vector3RC", "void", ["number", "number"], [this.pointer, tint.pointer]);
21079
+ }
21080
+ /**
21081
+ * @description Get the Material tint.
21082
+ * @return The tint value.
21083
+ */
21084
+ getTint() {
21085
+ var _ret = Module._malloc(8);
21086
+ Module.ccall("csp_systems_AlphaVideoMaterial_GetTintC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
21087
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
21088
+ Module._free(_ret);
21089
+ return _nPtr;
21090
+ }
21091
+ /**
21092
+ * @description Set the alpha factor.
21093
+ * @param factor - The alpha factor.
21094
+ */
21095
+ setAlphaFactor(factor) {
21096
+ assert(factor >= Limits.FLOAT_MIN);
21097
+ assert(factor <= Limits.FLOAT_MAX);
21098
+ Module.ccall("csp_systems_AlphaVideoMaterial_SetAlphaFactor_void_float", "void", ["number", "number"], [this.pointer, factor]);
21099
+ }
21100
+ /**
21101
+ * @description Get the alpha factor.
21102
+ * @return The alpha factor.
21103
+ */
21104
+ getAlphaFactor() {
21105
+ let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetAlphaFactorC_float", "number", ["number"], [this.pointer]);
21106
+ return _result;
21107
+ }
21108
+ /**
21109
+ * @description Set the emissive intensity.
21110
+ * @param intensity - The emissive intensity.
21111
+ */
21112
+ setEmissiveIntensity(intensity) {
21113
+ assert(intensity >= Limits.FLOAT_MIN);
21114
+ assert(intensity <= Limits.FLOAT_MAX);
21115
+ Module.ccall("csp_systems_AlphaVideoMaterial_SetEmissiveIntensity_void_float", "void", ["number", "number"], [this.pointer, intensity]);
21116
+ }
21117
+ /**
21118
+ * @description Get the emissive intensity.
21119
+ * @return The emissive intensity.
21120
+ */
21121
+ getEmissiveIntensity() {
21122
+ let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetEmissiveIntensityC_float", "number", ["number"], [this.pointer]);
21123
+ return _result;
21124
+ }
21125
+ /**
21126
+ * @description Set the alpha mask.
21127
+ * @param mask - The alpha mask.
21128
+ */
21129
+ setAlphaMask(mask) {
21130
+ assert(mask >= Limits.FLOAT_MIN);
21131
+ assert(mask <= Limits.FLOAT_MAX);
21132
+ Module.ccall("csp_systems_AlphaVideoMaterial_SetAlphaMask_void_float", "void", ["number", "number"], [this.pointer, mask]);
21133
+ }
21134
+ /**
21135
+ * @description Get the alpha mask.
21136
+ * @return The alpha mask.
21137
+ */
21138
+ getAlphaMask() {
21139
+ let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetAlphaMaskC_float", "number", ["number"], [this.pointer]);
21140
+ return _result;
21141
+ }
21142
+ /**
21143
+ * @description Constructor which links the material to an asset.
21144
+ * @param name - The name of the material.
21145
+ * @param materialCollectionId - The asset collection which holds the associated material asset.
21146
+ * @param materialId - The asset where the material info is stored.
21147
+ */
21148
+ static create_name_materialCollectionId_materialId(name, materialCollectionId, materialId) {
21149
+ var _ptr = Module._malloc(8);
21150
+ Module.ccall("csp_systems_AlphaVideoMaterial_Ctor_StringRC_StringRC_StringRC", "void", ["number", "string", "string", "string"], [_ptr, name, materialCollectionId, materialId]);
21151
+ var _nPtr = getNativePointer(_ptr);
21152
+ return new AlphaVideoMaterial(_nPtr);
21153
+ }
21154
+ delete() {
21155
+ if (this.ownsPointer && !this.disposed) {
21156
+ Module.ccall("csp_systems_AlphaVideoMaterial_Dtor", "void", ["number"], [this.pointer]);
21157
+ this.disposed = true;
21158
+ }
21159
+ }
21160
+ static create() {
21161
+ var _ptr = Module._malloc(8);
21162
+ Module.ccall("csp_systems_AlphaVideoMaterial_Ctor", "void", ["number"], [_ptr]);
21163
+ var _nPtr = getNativePointer(_ptr);
21164
+ return new AlphaVideoMaterial(_nPtr);
21165
+ }
21166
+ }
21167
+ Systems.AlphaVideoMaterial = AlphaVideoMaterial;
21168
+ })(Systems || (Systems = {}));
20881
21169
  (function (Systems) {
20882
21170
  /**
20883
21171
  @ingroup Asset System
@@ -21820,12 +22108,13 @@ export class CSPFoundation {
21820
22108
  /**
21821
22109
  * @description Creates a new material backed by an AssetCollection/Asset.
21822
22110
  * @param name - The name of the new material.
22111
+ * @param shaderType - The type of shader model the material is associated with.
21823
22112
  * @param spaceId - The space id this material is associated with.
21824
22113
  * @param metadata - The metadata to be associated with the created material.
21825
22114
  * @param assetTags - Tags to be associated with the created material.
21826
22115
  * @param callback - Callback when asynchronous task finishes.
21827
22116
  */
21828
- async createMaterial(name, spaceId, metadata, assetTags) {
22117
+ async createMaterial(name, shaderType, spaceId, metadata, assetTags) {
21829
22118
  var _resolve;
21830
22119
  var _promise = new Promise((_r) => {
21831
22120
  _resolve = _r;
@@ -21833,7 +22122,7 @@ export class CSPFoundation {
21833
22122
  var _callbackPtr;
21834
22123
  var _callback = (_stateObject__, result) => {
21835
22124
  var _resultPtr = getNativePointer(result);
21836
- var _resultInstance = new Systems.GLTFMaterialResult(_resultPtr);
22125
+ var _resultInstance = new Systems.MaterialResult(_resultPtr);
21837
22126
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21838
22127
  return;
21839
22128
  }
@@ -21841,9 +22130,19 @@ export class CSPFoundation {
21841
22130
  Module.removeFunction(_callbackPtr);
21842
22131
  };
21843
22132
  _callbackPtr = Module.addFunction(_callback, "vii");
21844
- Module.ccall("csp_systems_AssetSystem_CreateMaterial_void_StringRC_StringRC_MapRC_ArrayRC_GLTFMaterialResultCallback", "void", ["number", "string", "string", "number", "number", "number", "number"], [
22133
+ Module.ccall("csp_systems_AssetSystem_CreateMaterial_void_StringRC_EShaderTypeC_StringRC_MapR_ArrayRC_MaterialResultCallback", "void", [
22134
+ "number",
22135
+ "string",
22136
+ "number",
22137
+ "string",
22138
+ "number",
22139
+ "number",
22140
+ "number",
22141
+ "number",
22142
+ ], [
21845
22143
  this.pointer,
21846
22144
  name,
22145
+ shaderType,
21847
22146
  spaceId,
21848
22147
  metadata.pointer,
21849
22148
  assetTags.pointer,
@@ -21876,7 +22175,7 @@ export class CSPFoundation {
21876
22175
  Module.removeFunction(_callbackPtr);
21877
22176
  };
21878
22177
  _callbackPtr = Module.addFunction(_callback, "vii");
21879
- Module.ccall("csp_systems_AssetSystem_UpdateMaterial_void_GLTFMaterialRC_NullResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, material.pointer, _callbackPtr, 0]);
22178
+ Module.ccall("csp_systems_AssetSystem_UpdateMaterial_void_MaterialRC_NullResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, material.pointer, _callbackPtr, 0]);
21880
22179
  return _promise;
21881
22180
  }
21882
22181
  /**
@@ -21901,7 +22200,7 @@ export class CSPFoundation {
21901
22200
  Module.removeFunction(_callbackPtr);
21902
22201
  };
21903
22202
  _callbackPtr = Module.addFunction(_callback, "vii");
21904
- Module.ccall("csp_systems_AssetSystem_DeleteMaterial_void_GLTFMaterialRC_NullResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, material.pointer, _callbackPtr, 0]);
22203
+ Module.ccall("csp_systems_AssetSystem_DeleteMaterial_void_MaterialRC_NullResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, material.pointer, _callbackPtr, 0]);
21905
22204
  return _promise;
21906
22205
  }
21907
22206
  /**
@@ -21917,7 +22216,7 @@ export class CSPFoundation {
21917
22216
  var _callbackPtr;
21918
22217
  var _callback = (_stateObject__, result) => {
21919
22218
  var _resultPtr = getNativePointer(result);
21920
- var _resultInstance = new Systems.GLTFMaterialsResult(_resultPtr);
22219
+ var _resultInstance = new Systems.MaterialsResult(_resultPtr);
21921
22220
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21922
22221
  return;
21923
22222
  }
@@ -21925,7 +22224,7 @@ export class CSPFoundation {
21925
22224
  Module.removeFunction(_callbackPtr);
21926
22225
  };
21927
22226
  _callbackPtr = Module.addFunction(_callback, "vii");
21928
- Module.ccall("csp_systems_AssetSystem_GetMaterials_void_StringRC_GLTFMaterialsResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceId, _callbackPtr, 0]);
22227
+ Module.ccall("csp_systems_AssetSystem_GetMaterials_void_StringRC_MaterialsResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceId, _callbackPtr, 0]);
21929
22228
  return _promise;
21930
22229
  }
21931
22230
  /**
@@ -21942,7 +22241,7 @@ export class CSPFoundation {
21942
22241
  var _callbackPtr;
21943
22242
  var _callback = (_stateObject__, result) => {
21944
22243
  var _resultPtr = getNativePointer(result);
21945
- var _resultInstance = new Systems.GLTFMaterialResult(_resultPtr);
22244
+ var _resultInstance = new Systems.MaterialResult(_resultPtr);
21946
22245
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21947
22246
  return;
21948
22247
  }
@@ -21950,7 +22249,7 @@ export class CSPFoundation {
21950
22249
  Module.removeFunction(_callbackPtr);
21951
22250
  };
21952
22251
  _callbackPtr = Module.addFunction(_callback, "vii");
21953
- Module.ccall("csp_systems_AssetSystem_GetMaterial_void_StringRC_StringRC_GLTFMaterialResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, assetCollectionId, assetId, _callbackPtr, 0]);
22252
+ Module.ccall("csp_systems_AssetSystem_GetMaterial_void_StringRC_StringRC_MaterialResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, assetCollectionId, assetId, _callbackPtr, 0]);
21954
22253
  return _promise;
21955
22254
  }
21956
22255
  /**
@@ -22007,26 +22306,26 @@ export class CSPFoundation {
22007
22306
  return new Systems.GLTFMaterial(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
22008
22307
  }
22009
22308
  /**
22010
- * Sets how to alpha value is interpreted
22011
- * @param mode - EAlphaMode
22309
+ * @description Sets the alpha mode which determines how the alpha value is interpreted.
22310
+ * @param mode - The alpha mode to set.
22012
22311
  */
22013
22312
  setAlphaMode(mode) {
22014
22313
  Module.ccall("csp_systems_GLTFMaterial_SetAlphaMode_void_EAlphaMode", "void", ["number", "number"], [this.pointer, mode]);
22015
22314
  }
22016
22315
  /**
22017
- * Gets how to alpha value is interpreted
22018
- * @return EAlphaMode
22316
+ * @description Gets the alpha mode which determines how the alpha value is interpreted.
22317
+ * @return The alpha mode.
22019
22318
  */
22020
22319
  getAlphaMode() {
22021
22320
  let _result = Module.ccall("csp_systems_GLTFMaterial_GetAlphaModeC_EAlphaMode", "number", ["number"], [this.pointer]);
22022
22321
  return _result;
22023
22322
  }
22024
22323
  /**
22025
- * @description Sets the alpha cutoff value
22026
- * When alphaMode is set to MASK the alphaCutoff property specifies the cutoff threshold.
22324
+ * @description Sets the alpha cutoff value.
22325
+ @details When alphaMode is set to MASK the alphaCutoff property specifies the cutoff threshold.
22027
22326
  * If the alpha value is greater than or equal to the alphaCutoff value then it is rendered as fully opaque,
22028
- * otherwise, it is rendered as fully transparent. alphaCutoff value is ignored for other modes.
22029
- * @param cutoff - Float
22327
+ * otherwise, it is rendered as fully transparent. The alphaCutoff value is ignored for other modes.
22328
+ * @param cutoff - The alpha cutoff value to set.
22030
22329
  */
22031
22330
  setAlphaCutoff(cutoff) {
22032
22331
  assert(cutoff >= Limits.FLOAT_MIN);
@@ -22034,8 +22333,8 @@ export class CSPFoundation {
22034
22333
  Module.ccall("csp_systems_GLTFMaterial_SetAlphaCutoff_void_float", "void", ["number", "number"], [this.pointer, cutoff]);
22035
22334
  }
22036
22335
  /**
22037
- * Gets the alpha cutoff value
22038
- * @return Float
22336
+ * @description Gets the alpha cutoff value.
22337
+ * @return The alpha cutoff value.
22039
22338
  */
22040
22339
  getAlphaCutoff() {
22041
22340
  let _result = Module.ccall("csp_systems_GLTFMaterial_GetAlphaCutoffC_float", "number", ["number"], [this.pointer]);
@@ -22043,16 +22342,16 @@ export class CSPFoundation {
22043
22342
  }
22044
22343
  /**
22045
22344
  * @description Sets the doubleSided property which specifies whether the material is double sided.
22046
- * When this value is false, back - face culling is enabled, i.e., only front-facing triangles are rendered.
22345
+ @details When this value is false, back - face culling is enabled, i.e., only front-facing triangles are rendered.
22047
22346
  * When this value is true, back - face culling is disabled and double sided lighting is enabled.
22048
- * @param doubleSided - Bool
22347
+ * @param doubleSided - The double sided value to set.
22049
22348
  */
22050
22349
  setDoubleSided(doubleSided) {
22051
22350
  Module.ccall("csp_systems_GLTFMaterial_SetDoubleSided_void_bool", "void", ["number", "boolean"], [this.pointer, doubleSided]);
22052
22351
  }
22053
22352
  /**
22054
- * @description Gets the double sided value
22055
- * @return Bool
22353
+ * @description Gets the double sided value.
22354
+ * @return The double sided value.
22056
22355
  */
22057
22356
  getDoubleSided() {
22058
22357
  let _result = Module.ccall("csp_systems_GLTFMaterial_GetDoubleSidedC_bool", "boolean", ["number"], [this.pointer]);
@@ -22060,15 +22359,15 @@ export class CSPFoundation {
22060
22359
  }
22061
22360
  /**
22062
22361
  * @description Sets the factors for the base color of the material.
22063
- * This value defines linear multipliers for the sampled texels of the base color texture.
22064
- * @param factor - Const csp::common::vector4&
22362
+ @details This value defines linear multipliers for the sampled texels of the base color texture.
22363
+ * @param factor - The base color factor to set.
22065
22364
  */
22066
22365
  setBaseColorFactor(factor) {
22067
22366
  Module.ccall("csp_systems_GLTFMaterial_SetBaseColorFactor_void_Vector4RC", "void", ["number", "number"], [this.pointer, factor.pointer]);
22068
22367
  }
22069
22368
  /**
22070
- * @description Gets the factor of the base color texture
22071
- * @return Csp::common::vector4&
22369
+ * @description Gets the factor of the base color texture.
22370
+ * @return The base color factor.
22072
22371
  */
22073
22372
  getBaseColorFactor() {
22074
22373
  var _ret = Module._malloc(8);
@@ -22079,8 +22378,8 @@ export class CSPFoundation {
22079
22378
  }
22080
22379
  /**
22081
22380
  * @description Sets the factor for the metalness of the material.
22082
- * This value defines a linear multiplier for the sampled metalness values of the metallic-roughness texture.
22083
- * @param factor - Float
22381
+ @details This value defines a linear multiplier for the sampled metalness values of the metallic-roughness texture.
22382
+ * @param factor - The metallic factor to set.
22084
22383
  */
22085
22384
  setMetallicFactor(factor) {
22086
22385
  assert(factor >= Limits.FLOAT_MIN);
@@ -22088,8 +22387,8 @@ export class CSPFoundation {
22088
22387
  Module.ccall("csp_systems_GLTFMaterial_SetMetallicFactor_void_float", "void", ["number", "number"], [this.pointer, factor]);
22089
22388
  }
22090
22389
  /**
22091
- * @description Gets the factor of the metallic texture
22092
- * @return Float
22390
+ * @description Gets the factor of the metallic texture.
22391
+ * @return The metallic factor.
22093
22392
  */
22094
22393
  getMetallicFactor() {
22095
22394
  let _result = Module.ccall("csp_systems_GLTFMaterial_GetMetallicFactorC_float", "number", ["number"], [this.pointer]);
@@ -22097,8 +22396,8 @@ export class CSPFoundation {
22097
22396
  }
22098
22397
  /**
22099
22398
  * @description Sets the factor for the roughness of the material.
22100
- * This value defines a linear multiplier for the sampled roughness values of the metallic-roughness texture.
22101
- * @param factor - Float
22399
+ @details This value defines a linear multiplier for the sampled roughness values of the metallic-roughness texture.
22400
+ * @param factor - The roughness factor to set.
22102
22401
  */
22103
22402
  setRoughnessFactor(factor) {
22104
22403
  assert(factor >= Limits.FLOAT_MIN);
@@ -22106,8 +22405,8 @@ export class CSPFoundation {
22106
22405
  Module.ccall("csp_systems_GLTFMaterial_SetRoughnessFactor_void_float", "void", ["number", "number"], [this.pointer, factor]);
22107
22406
  }
22108
22407
  /**
22109
- * @description Gets the factor of the roughness texture
22110
- * @return Float
22408
+ * @description Gets the factor of the roughness texture.
22409
+ * @return The roughness factor.
22111
22410
  */
22112
22411
  getRoughnessFactor() {
22113
22412
  let _result = Module.ccall("csp_systems_GLTFMaterial_GetRoughnessFactorC_float", "number", ["number"], [this.pointer]);
@@ -22115,15 +22414,15 @@ export class CSPFoundation {
22115
22414
  }
22116
22415
  /**
22117
22416
  * @description Sets factors for the emissive color of the material.
22118
- * This value defines linear multipliers for the sampled texels of the emissive texture.
22119
- * @param factor - Const csp::common::vector3&
22417
+ @details This value defines linear multipliers for the sampled texels of the emissive texture.
22418
+ * @param factor - The emissive factor to set.
22120
22419
  */
22121
22420
  setEmissiveFactor(factor) {
22122
22421
  Module.ccall("csp_systems_GLTFMaterial_SetEmissiveFactor_void_Vector3RC", "void", ["number", "number"], [this.pointer, factor.pointer]);
22123
22422
  }
22124
22423
  /**
22125
- * @description Gets the factor of the emissive color texture
22126
- * @return Csp::common::vector3&
22424
+ * @description Gets the factor of the emissive color texture.
22425
+ * @return The emissive factor.
22127
22426
  */
22128
22427
  getEmissiveFactor() {
22129
22428
  var _ret = Module._malloc(8);
@@ -22133,20 +22432,20 @@ export class CSPFoundation {
22133
22432
  return _nPtr;
22134
22433
  }
22135
22434
  /**
22136
- * @description Sets the base color texture. The first three components (RGB) MUST be encoded with the sRGB transfer function.
22137
- * They specify the base color of the material.
22435
+ * @description Sets the base color texture.
22436
+ @details The first three components (RGB) MUST be encoded with the sRGB transfer function. They specify the base color of the material.
22138
22437
  * If the fourth component (A) is present, it represents the linear alpha coverage of the material.
22139
22438
  * Otherwise, the alpha coverage is equal to 1.0. The material.alphaMode property specifies how alpha is interpreted.
22140
22439
  * The stored texels MUST NOT be premultiplied.
22141
22440
  * When undefined, the texture MUST be sampled as having 1.0 in all components.
22142
- * @param texture - Const textureinfo&
22441
+ * @param texture - The base color texture to set.
22143
22442
  */
22144
22443
  setBaseColorTexture(texture) {
22145
22444
  Module.ccall("csp_systems_GLTFMaterial_SetBaseColorTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
22146
22445
  }
22147
22446
  /**
22148
- * @description Gets the base color texture
22149
- * @return Const textureinfo&
22447
+ * @description Gets the base color texture.
22448
+ * @return The base color texture.
22150
22449
  */
22151
22450
  getBaseColorTexture() {
22152
22451
  var _ret = Module._malloc(8);
@@ -22157,19 +22456,19 @@ export class CSPFoundation {
22157
22456
  }
22158
22457
  /**
22159
22458
  * @description Sets the metallic-roughness texture.
22160
- * The metalness values are sampled from the B channel.
22459
+ @details The metalness values are sampled from the B channel.
22161
22460
  * The roughness values are sampled from the G channel.
22162
22461
  * These values MUST be encoded with a linear transfer function.
22163
22462
  * If other channels are present (R or A), they MUST be ignored for metallic-roughness calculations.
22164
22463
  * When undefined, the texture MUST be sampled as having 1.0 in G and B components.
22165
- * @param texture - Const textureinfo&
22464
+ * @param texture - The metallic-roughness texture to set.
22166
22465
  */
22167
22466
  setMetallicRoughnessTexture(texture) {
22168
22467
  Module.ccall("csp_systems_GLTFMaterial_SetMetallicRoughnessTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
22169
22468
  }
22170
22469
  /**
22171
- * @description Gets the metallic-roughness texture
22172
- * @return Const textureinfo&
22470
+ * @description Gets the metallic-roughness texture.
22471
+ * @return The metallic-roughness texture.
22173
22472
  */
22174
22473
  getMetallicRoughnessTexture() {
22175
22474
  var _ret = Module._malloc(8);
@@ -22180,18 +22479,18 @@ export class CSPFoundation {
22180
22479
  }
22181
22480
  /**
22182
22481
  * @description Sets the tangent space normal texture.
22183
- * The texture encodes RGB components with linear transfer function.
22482
+ @details The texture encodes RGB components with linear transfer function.
22184
22483
  * Each texel represents the XYZ components of a normal vector in tangent space.
22185
22484
  * The normal vectors use the convention +X is right and +Y is up. +Z points toward the viewer.
22186
22485
  * If a fourth component (A) is present, it MUST be ignored. When undefined, the material does not have a tangent space normal texture.
22187
- * @param texture - Const textureinfo&
22486
+ * @param texture - The normal texture to set.
22188
22487
  */
22189
22488
  setNormalTexture(texture) {
22190
22489
  Module.ccall("csp_systems_GLTFMaterial_SetNormalTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
22191
22490
  }
22192
22491
  /**
22193
22492
  * @description Gets the tangent space normal texture.
22194
- * @return Const textureinfo&
22493
+ * @return The normal texture.
22195
22494
  */
22196
22495
  getNormalTexture() {
22197
22496
  var _ret = Module._malloc(8);
@@ -22202,18 +22501,18 @@ export class CSPFoundation {
22202
22501
  }
22203
22502
  /**
22204
22503
  * @description Sets the occlusion texture.
22205
- * The occlusion values are linearly sampled from the R channel.
22504
+ @details The occlusion values are linearly sampled from the R channel.
22206
22505
  * Higher values indicate areas that receive full indirect lighting and lower values indicate no indirect lighting.
22207
22506
  * If other channels are present (GBA), they MUST be ignored for occlusion calculations.
22208
22507
  * When undefined, the material does not have an occlusion texture.
22209
- * @param texture - Const textureinfo&
22508
+ * @param texture - The occlusion texture to set.
22210
22509
  */
22211
22510
  setOcclusionTexture(texture) {
22212
22511
  Module.ccall("csp_systems_GLTFMaterial_SetOcclusionTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
22213
22512
  }
22214
22513
  /**
22215
- * @description Gets the occlusion texture
22216
- * @return Const textureinfo&
22514
+ * @description Gets the occlusion texture.
22515
+ * @return The occlusion texture.
22217
22516
  */
22218
22517
  getOcclusionTexture() {
22219
22518
  var _ret = Module._malloc(8);
@@ -22224,18 +22523,18 @@ export class CSPFoundation {
22224
22523
  }
22225
22524
  /**
22226
22525
  * @description Sets the emissive texture.
22227
- * It controls the color and intensity of the light being emitted by the material.
22526
+ @details It controls the color and intensity of the light being emitted by the material.
22228
22527
  * This texture contains RGB components encoded with the sRGB transfer function.
22229
22528
  * If a fourth component (A) is present, it MUST be ignored.
22230
22529
  * When undefined, the texture MUST be sampled as having 1.0 in RGB components.
22231
- * @param texture - Const textureinfo&
22530
+ * @param texture - The emissive texture to set.
22232
22531
  */
22233
22532
  setEmissiveTexture(texture) {
22234
22533
  Module.ccall("csp_systems_GLTFMaterial_SetEmissiveTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
22235
22534
  }
22236
22535
  /**
22237
- * @description Gets the emissive texture
22238
- * @return Const textureinfo&
22536
+ * @description Gets the emissive texture.
22537
+ * @return The emissive texture.
22239
22538
  */
22240
22539
  getEmissiveTexture() {
22241
22540
  var _ret = Module._malloc(8);
@@ -22245,20 +22544,14 @@ export class CSPFoundation {
22245
22544
  return _nPtr;
22246
22545
  }
22247
22546
  /**
22248
- * @description Constructor which links the material to an asset
22547
+ * @description Constructor which links the material to an asset.
22249
22548
  * @param name - The name of the material.
22250
- * @param assetCollectionId - The asset collection where the material info is stored
22251
- * @param assetId - The asset where the material info is stored
22549
+ * @param materialCollectionId - The asset collection which holds the associated material asset.
22550
+ * @param materialId - The asset where the material info is stored.
22252
22551
  */
22253
- static create_name_assetCollectionId_assetId(name, assetCollectionId, assetId) {
22254
- var _ptr = Module._malloc(8);
22255
- Module.ccall("csp_systems_GLTFMaterial_Ctor_StringRC_StringRC_StringRC", "void", ["number", "string", "string", "string"], [_ptr, name, assetCollectionId, assetId]);
22256
- var _nPtr = getNativePointer(_ptr);
22257
- return new GLTFMaterial(_nPtr);
22258
- }
22259
- static create() {
22552
+ static create_name_materialCollectionId_materialId(name, materialCollectionId, materialId) {
22260
22553
  var _ptr = Module._malloc(8);
22261
- Module.ccall("csp_systems_GLTFMaterial_Ctor", "void", ["number"], [_ptr]);
22554
+ Module.ccall("csp_systems_GLTFMaterial_Ctor_StringRC_StringRC_StringRC", "void", ["number", "string", "string", "string"], [_ptr, name, materialCollectionId, materialId]);
22262
22555
  var _nPtr = getNativePointer(_ptr);
22263
22556
  return new GLTFMaterial(_nPtr);
22264
22557
  }
@@ -22268,107 +22561,116 @@ export class CSPFoundation {
22268
22561
  this.disposed = true;
22269
22562
  }
22270
22563
  }
22564
+ static create() {
22565
+ var _ptr = Module._malloc(8);
22566
+ Module.ccall("csp_systems_GLTFMaterial_Ctor", "void", ["number"], [_ptr]);
22567
+ var _nPtr = getNativePointer(_ptr);
22568
+ return new GLTFMaterial(_nPtr);
22569
+ }
22271
22570
  }
22272
22571
  Systems.GLTFMaterial = GLTFMaterial;
22273
22572
  })(Systems || (Systems = {}));
22274
22573
  (function (Systems) {
22275
22574
  /**
22276
22575
  @ingroup Asset System
22277
- * @description Data class used to contain information when attempting to download material data.
22576
+ * @description Data class used to contain information when attempting to download LOD chain data.
22278
22577
  */
22279
- class GLTFMaterialResult extends Systems.ResultBase {
22578
+ class LODChainResult extends Systems.ResultBase {
22280
22579
  /** @internal */
22281
22580
  constructor(pointer) {
22282
22581
  super(pointer);
22283
22582
  }
22284
22583
  static fromResultBase(baseInstance) {
22285
22584
  const nativeClassWrapper = baseInstance;
22286
- return new Systems.GLTFMaterialResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
22585
+ return new Systems.LODChainResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
22287
22586
  }
22288
22587
  /**
22289
- * @description Retreives the GLTFMaterial from the result.
22588
+ * @description Retreives the LODChain from the result.
22290
22589
  */
22291
- getGLTFMaterial() {
22590
+ getLODChain() {
22292
22591
  var _ret = Module._malloc(8);
22293
- Module.ccall("csp_systems_GLTFMaterialResult_GetGLTFMaterialC_GLTFMaterialRC", "void", ["number", "number"], [_ret, this.pointer]);
22294
- var _nPtr = new Systems.GLTFMaterial(getNativePointer(_ret));
22592
+ Module.ccall("csp_systems_LODChainResult_GetLODChainC_LODChainRC", "void", ["number", "number"], [_ret, this.pointer]);
22593
+ var _nPtr = new Systems.LODChain(getNativePointer(_ret));
22295
22594
  Module._free(_ret);
22296
22595
  return _nPtr;
22297
22596
  }
22298
22597
  delete() {
22299
22598
  if (this.ownsPointer && !this.disposed) {
22300
- Module.ccall("csp_systems_GLTFMaterialResult_Dtor", "void", ["number"], [this.pointer]);
22599
+ Module.ccall("csp_systems_LODChainResult_Dtor", "void", ["number"], [this.pointer]);
22301
22600
  this.disposed = true;
22302
22601
  }
22303
22602
  }
22304
22603
  }
22305
- Systems.GLTFMaterialResult = GLTFMaterialResult;
22604
+ Systems.LODChainResult = LODChainResult;
22306
22605
  })(Systems || (Systems = {}));
22307
22606
  (function (Systems) {
22308
22607
  /**
22309
22608
  @ingroup Asset System
22310
- * @description Data class used to contain information when attempting to download a collection of material data.
22609
+ * @description Result data class that contains downloaded material data.
22311
22610
  */
22312
- class GLTFMaterialsResult extends Systems.ResultBase {
22611
+ class MaterialResult extends Systems.ResultBase {
22313
22612
  /** @internal */
22314
22613
  constructor(pointer) {
22315
22614
  super(pointer);
22316
22615
  }
22317
22616
  static fromResultBase(baseInstance) {
22318
22617
  const nativeClassWrapper = baseInstance;
22319
- return new Systems.GLTFMaterialsResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
22618
+ return new Systems.MaterialResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
22320
22619
  }
22321
22620
  /**
22322
- * @description Retreives the GLTFMaterial from the result.
22621
+ * @description Retrieves the Material from the result.
22622
+ * @return Returns a pointer to the Material object. The caller should take ownership of the pointer.
22323
22623
  */
22324
- getGLTFMaterials() {
22624
+ getMaterial() {
22325
22625
  var _ret = Module._malloc(8);
22326
- Module.ccall("csp_systems_GLTFMaterialsResult_GetGLTFMaterialsC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
22327
- var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_GLTFMaterialFactory, "csp_systems_GLTFMaterial");
22626
+ Module.ccall("csp_systems_MaterialResult_GetMaterialC_MaterialPC", "void", ["number", "number"], [_ret, this.pointer]);
22627
+ var _nPtr = new Systems.Material(getNativePointer(_ret));
22328
22628
  Module._free(_ret);
22329
22629
  return _nPtr;
22330
22630
  }
22331
22631
  delete() {
22332
22632
  if (this.ownsPointer && !this.disposed) {
22333
- Module.ccall("csp_systems_GLTFMaterialsResult_Dtor", "void", ["number"], [this.pointer]);
22633
+ Module.ccall("csp_systems_MaterialResult_Dtor", "void", ["number"], [this.pointer]);
22334
22634
  this.disposed = true;
22335
22635
  }
22336
22636
  }
22337
22637
  }
22338
- Systems.GLTFMaterialsResult = GLTFMaterialsResult;
22638
+ Systems.MaterialResult = MaterialResult;
22339
22639
  })(Systems || (Systems = {}));
22340
22640
  (function (Systems) {
22341
22641
  /**
22342
22642
  @ingroup Asset System
22343
- * @description Data class used to contain information when attempting to download LOD chain data.
22643
+ * @description Result data class that contains a collection of downloaded material data.
22344
22644
  */
22345
- class LODChainResult extends Systems.ResultBase {
22645
+ class MaterialsResult extends Systems.ResultBase {
22346
22646
  /** @internal */
22347
22647
  constructor(pointer) {
22348
22648
  super(pointer);
22349
22649
  }
22350
22650
  static fromResultBase(baseInstance) {
22351
22651
  const nativeClassWrapper = baseInstance;
22352
- return new Systems.LODChainResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
22652
+ return new Systems.MaterialsResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
22353
22653
  }
22354
22654
  /**
22355
- * @description Retreives the LODChain from the result.
22655
+ * @description Retreives an Array of Materials from the result.
22656
+ * @return Returns a const pointer to an Array of Material class pointers. The caller should take ownership of the
22657
+ * pointer.
22356
22658
  */
22357
- getLODChain() {
22659
+ getMaterials() {
22358
22660
  var _ret = Module._malloc(8);
22359
- Module.ccall("csp_systems_LODChainResult_GetLODChainC_LODChainRC", "void", ["number", "number"], [_ret, this.pointer]);
22360
- var _nPtr = new Systems.LODChain(getNativePointer(_ret));
22661
+ Module.ccall("csp_systems_MaterialsResult_GetMaterialsC_ArrayPC", "void", ["number", "number"], [_ret, this.pointer]);
22662
+ var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_MaterialFactory, "csp_systems_Material");
22361
22663
  Module._free(_ret);
22362
22664
  return _nPtr;
22363
22665
  }
22364
22666
  delete() {
22365
22667
  if (this.ownsPointer && !this.disposed) {
22366
- Module.ccall("csp_systems_LODChainResult_Dtor", "void", ["number"], [this.pointer]);
22668
+ Module.ccall("csp_systems_MaterialsResult_Dtor", "void", ["number"], [this.pointer]);
22367
22669
  this.disposed = true;
22368
22670
  }
22369
22671
  }
22370
22672
  }
22371
- Systems.LODChainResult = LODChainResult;
22673
+ Systems.MaterialsResult = MaterialsResult;
22372
22674
  })(Systems || (Systems = {}));
22373
22675
  (function (Systems) {
22374
22676
  /**
@@ -28398,17 +28700,17 @@ export class CSPFoundation {
28398
28700
  Module._free(_ret);
28399
28701
  return _inst;
28400
28702
  }
28401
- static ofcsp_systems_GLTFMaterial() {
28703
+ static ofcsp_systems_LODAsset() {
28402
28704
  var _ret = Module._malloc(8);
28403
- Module.ccall("csp_common_Array_Ctor_csp_systems_GLTFMaterial", "void", ["number"], [_ret]);
28404
- var _inst = new Array(getNativePointer(_ret), csp_systems_GLTFMaterialFactory, "csp_systems_GLTFMaterial");
28705
+ Module.ccall("csp_common_Array_Ctor_csp_systems_LODAsset", "void", ["number"], [_ret]);
28706
+ var _inst = new Array(getNativePointer(_ret), csp_systems_LODAssetFactory, "csp_systems_LODAsset");
28405
28707
  Module._free(_ret);
28406
28708
  return _inst;
28407
28709
  }
28408
- static ofcsp_systems_LODAsset() {
28710
+ static ofcsp_systems_Material() {
28409
28711
  var _ret = Module._malloc(8);
28410
- Module.ccall("csp_common_Array_Ctor_csp_systems_LODAsset", "void", ["number"], [_ret]);
28411
- var _inst = new Array(getNativePointer(_ret), csp_systems_LODAssetFactory, "csp_systems_LODAsset");
28712
+ Module.ccall("csp_common_Array_Ctor_csp_systems_Material", "void", ["number"], [_ret]);
28713
+ var _inst = new Array(getNativePointer(_ret), csp_systems_MaterialFactory, "csp_systems_Material");
28412
28714
  Module._free(_ret);
28413
28715
  return _inst;
28414
28716
  }
@@ -28685,17 +28987,17 @@ export class CSPFoundation {
28685
28987
  Module._free(_ret);
28686
28988
  return _inst;
28687
28989
  }
28688
- static ofcsp_systems_GLTFMaterial_number(size) {
28990
+ static ofcsp_systems_LODAsset_number(size) {
28689
28991
  var _ret = Module._malloc(8);
28690
- Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_GLTFMaterial", "void", ["number", "number"], [_ret, size]);
28691
- var _inst = new Array(getNativePointer(_ret), csp_systems_GLTFMaterialFactory, "csp_systems_GLTFMaterial");
28992
+ Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_LODAsset", "void", ["number", "number"], [_ret, size]);
28993
+ var _inst = new Array(getNativePointer(_ret), csp_systems_LODAssetFactory, "csp_systems_LODAsset");
28692
28994
  Module._free(_ret);
28693
28995
  return _inst;
28694
28996
  }
28695
- static ofcsp_systems_LODAsset_number(size) {
28997
+ static ofcsp_systems_Material_number(size) {
28696
28998
  var _ret = Module._malloc(8);
28697
- Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_LODAsset", "void", ["number", "number"], [_ret, size]);
28698
- var _inst = new Array(getNativePointer(_ret), csp_systems_LODAssetFactory, "csp_systems_LODAsset");
28999
+ Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_Material", "void", ["number", "number"], [_ret, size]);
29000
+ var _inst = new Array(getNativePointer(_ret), csp_systems_MaterialFactory, "csp_systems_Material");
28699
29001
  Module._free(_ret);
28700
29002
  return _inst;
28701
29003
  }