rhodonite 0.4.2 → 0.5.2
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/VERSION-FILE +2 -2
- package/dist/esm/effekseer/EffekseerComponent.d.ts +52 -45
- package/dist/esm/effekseer/main.d.ts +6 -6
- package/dist/esm/foundation/cameras/AbstractCameraController.d.ts +14 -14
- package/dist/esm/foundation/cameras/ICameraController.d.ts +9 -9
- package/dist/esm/foundation/cameras/OrbitCameraController.d.ts +128 -123
- package/dist/esm/foundation/cameras/WalkThroughCameraController.d.ts +75 -75
- package/dist/esm/foundation/components/AnimationComponent.d.ts +81 -94
- package/dist/esm/foundation/components/BlendShapeComponent.d.ts +14 -14
- package/dist/esm/foundation/components/CameraComponent.d.ts +116 -116
- package/dist/esm/foundation/components/CameraControllerComponent.d.ts +16 -16
- package/dist/esm/foundation/components/LightComponent.d.ts +28 -28
- package/dist/esm/foundation/components/MeshComponent.d.ts +50 -50
- package/dist/esm/foundation/components/MeshRendererComponent.d.ts +57 -57
- package/dist/esm/foundation/components/PhysicsComponent.d.ts +12 -12
- package/dist/esm/foundation/components/SceneGraphComponent.d.ts +114 -81
- package/dist/esm/foundation/components/SkeletalComponent.d.ts +50 -50
- package/dist/esm/foundation/components/TransformComponent.d.ts +91 -91
- package/dist/esm/foundation/components/WellKnownComponentTIDs.d.ts +16 -16
- package/dist/esm/foundation/core/Component.d.ts +216 -216
- package/dist/esm/foundation/core/ComponentRepository.d.ts +59 -59
- package/dist/esm/foundation/core/Config.d.ts +20 -19
- package/dist/esm/foundation/core/Entity.d.ts +84 -84
- package/dist/esm/foundation/core/EntityRepository.d.ts +62 -62
- package/dist/esm/foundation/core/GlobalDataRepository.d.ts +32 -31
- package/dist/esm/foundation/core/MemoryManager.d.ts +29 -29
- package/dist/esm/foundation/core/RnObject.d.ts +96 -96
- package/dist/esm/foundation/definitions/AlphaMode.d.ts +15 -15
- package/dist/esm/foundation/definitions/AnimationAttribute.d.ts +13 -13
- package/dist/esm/foundation/definitions/AnimationInterpolation.d.ts +12 -12
- package/dist/esm/foundation/definitions/BasisCompressionType.d.ts +26 -26
- package/dist/esm/foundation/definitions/BoneDataType.d.ts +13 -13
- package/dist/esm/foundation/definitions/BufferUse.d.ts +13 -13
- package/dist/esm/foundation/definitions/CameraControllerType.d.ts +11 -11
- package/dist/esm/foundation/definitions/CameraType.d.ts +12 -12
- package/dist/esm/foundation/definitions/ComponentType.d.ts +32 -32
- package/dist/esm/foundation/definitions/CompositionType.d.ts +39 -38
- package/dist/esm/foundation/definitions/CompressionTextureType.d.ts +48 -48
- package/dist/esm/foundation/definitions/FileType.d.ts +17 -17
- package/dist/esm/foundation/definitions/GpuState.d.ts +10 -10
- package/dist/esm/foundation/definitions/HdriFormat.d.ts +10 -10
- package/dist/esm/foundation/definitions/LightType.d.ts +13 -13
- package/dist/esm/foundation/definitions/PixelFormat.d.ts +10 -10
- package/dist/esm/foundation/definitions/PrimitiveMode.d.ts +15 -15
- package/dist/esm/foundation/definitions/ProcessApproach.d.ts +19 -19
- package/dist/esm/foundation/definitions/ProcessStage.d.ts +18 -18
- package/dist/esm/foundation/definitions/RenderBufferTarget.d.ts +27 -27
- package/dist/esm/foundation/definitions/ShaderNode.d.ts +11 -11
- package/dist/esm/foundation/definitions/ShaderSemantics.d.ts +119 -119
- package/dist/esm/foundation/definitions/ShaderType.d.ts +13 -13
- package/dist/esm/foundation/definitions/ShaderVariableType.d.ts +11 -11
- package/dist/esm/foundation/definitions/ShaderVariableUpdateInterval.d.ts +12 -12
- package/dist/esm/foundation/definitions/ShadingModel.d.ts +12 -12
- package/dist/esm/foundation/definitions/ShadowMap.d.ts +11 -11
- package/dist/esm/foundation/definitions/TextureParameter.d.ts +37 -37
- package/dist/esm/foundation/definitions/VertexAttribute.d.ts +38 -38
- package/dist/esm/foundation/definitions/visibility.d.ts +12 -12
- package/dist/esm/foundation/enhanced_js_objects/Array.d.ts +15 -15
- package/dist/esm/foundation/exporter/Gltf2Exporter.d.ts +27 -22
- package/dist/esm/foundation/geometry/Frustum.d.ts +37 -37
- package/dist/esm/foundation/geometry/Mesh.d.ts +148 -124
- package/dist/esm/foundation/geometry/Plane.d.ts +30 -26
- package/dist/esm/foundation/geometry/Primitive.d.ts +78 -78
- package/dist/esm/foundation/geometry/Sphere.d.ts +12 -12
- package/dist/esm/foundation/gizmos/AABBGizmo.d.ts +29 -10
- package/dist/esm/foundation/gizmos/Gizmo.d.ts +39 -16
- package/dist/esm/foundation/gizmos/LocatorGizmo.d.ts +28 -0
- package/dist/esm/foundation/helpers/EntityHelper.d.ts +11 -11
- package/dist/esm/foundation/helpers/MaterialHelper.d.ts +173 -167
- package/dist/esm/foundation/helpers/MeshHelper.d.ts +4 -4
- package/dist/esm/foundation/helpers/RenderableHelper.d.ts +18 -18
- package/dist/esm/foundation/importer/AnimationAssigner.d.ts +16 -16
- package/dist/esm/foundation/importer/DrcPointCloudImporter.d.ts +69 -69
- package/dist/esm/foundation/importer/FormatDetector.d.ts +5 -5
- package/dist/esm/foundation/importer/Gltf1Importer.d.ts +45 -45
- package/dist/esm/foundation/importer/Gltf2Importer.d.ts +46 -46
- package/dist/esm/foundation/importer/GltfImporter.d.ts +57 -57
- package/dist/esm/foundation/importer/ILoaderExtension.d.ts +11 -11
- package/dist/esm/foundation/importer/ModelConverter.d.ts +78 -78
- package/dist/esm/foundation/importer/RhodoniteImportExtension.d.ts +9 -9
- package/dist/esm/foundation/importer/VRMImporter.d.ts +15 -15
- package/dist/esm/foundation/materials/core/AbstractMaterialNode.d.ts +124 -124
- package/dist/esm/foundation/materials/core/AbstractShaderNode.d.ts +33 -33
- package/dist/esm/foundation/materials/core/Material.d.ts +181 -149
- package/dist/esm/foundation/materials/core/ShaderGraphResolver.d.ts +16 -16
- package/dist/esm/foundation/materials/core/ShaderityUtility.d.ts +30 -32
- package/dist/esm/foundation/materials/nodes/AddShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/AttributeNormalShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/AttributePositionShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/BlockBeginShaderNode.d.ts +9 -9
- package/dist/esm/foundation/materials/nodes/BlockEndShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/DotProductShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/GreaterShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/IfStatementShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/MultiplyShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/NormalMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/NormalizeShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/OutColorShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/OutPositionShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ProjectionMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/TextureFetchMaterialNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/UniformDataShaderNode.d.ts +8 -8
- package/dist/esm/foundation/materials/nodes/VaryingInVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/VaryingOutVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/Vector3AndScalarToVector4ShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ViewMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/WireframeMaterialNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/WorldMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/singles/ClassicShadingSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/ColorGradingUsingLUTsSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/CustomSingleMaterialNode.d.ts +30 -31
- package/dist/esm/foundation/materials/singles/DepthEncodeSingleMaterialNode.d.ts +20 -20
- package/dist/esm/foundation/materials/singles/DetectHighLuminanceSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/EntityUIDOutputSingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/EnvConstantSingleMaterialNode.d.ts +14 -14
- package/dist/esm/foundation/materials/singles/FXAA3QualitySingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/FurnaceTestSingleMaterialNode.d.ts +17 -17
- package/dist/esm/foundation/materials/singles/GammaCorrectionSingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/GaussianBlurForEncodedDepthSingleMaterialNode.d.ts +27 -27
- package/dist/esm/foundation/materials/singles/GaussianBlurSingleMaterialNode.d.ts +27 -27
- package/dist/esm/foundation/materials/singles/MToonSingleMaterialNode.d.ts +52 -52
- package/dist/esm/foundation/materials/singles/MatCapSingleMaterialNode.d.ts +14 -14
- package/dist/esm/foundation/materials/singles/PbrExtendedShadingSingleMaterialNode.d.ts +29 -29
- package/dist/esm/foundation/materials/singles/PbrShadingSingleMaterialNode.d.ts +36 -36
- package/dist/esm/foundation/materials/singles/ShaderitySingleMaterialNode.d.ts +17 -0
- package/dist/esm/foundation/materials/singles/ShadowMapDecodeClassicSingleMaterialNode.d.ts +41 -41
- package/dist/esm/foundation/materials/singles/SkinPbrShadingSingleMaterialNode.d.ts +26 -26
- package/dist/esm/foundation/materials/singles/SynthesizeHDRSingleMaterialNode.d.ts +39 -39
- package/dist/esm/foundation/materials/singles/VarianceShadowMapDecodeClassicSingleMaterialNode.d.ts +52 -52
- package/dist/esm/foundation/math/AABB.d.ts +34 -34
- package/dist/esm/foundation/math/AbstractMathNumber.d.ts +6 -6
- package/dist/esm/foundation/math/AbstractMatrix.d.ts +14 -14
- package/dist/esm/foundation/math/AbstractQuaternion.d.ts +25 -25
- package/dist/esm/foundation/math/AbstractVector.d.ts +21 -21
- package/dist/esm/foundation/math/ColorRgb.d.ts +26 -27
- package/dist/esm/foundation/math/ColorRgba.d.ts +25 -25
- package/dist/esm/foundation/math/IColor.d.ts +64 -64
- package/dist/esm/foundation/math/IMathNumber.d.ts +3 -3
- package/dist/esm/foundation/math/IMatrix.d.ts +226 -226
- package/dist/esm/foundation/math/IQuaternion.d.ts +64 -64
- package/dist/esm/foundation/math/IVector.d.ts +209 -209
- package/dist/esm/foundation/math/IdentityMatrix33.d.ts +40 -40
- package/dist/esm/foundation/math/IdentityMatrix44.d.ts +45 -45
- package/dist/esm/foundation/math/ImageUtil.d.ts +19 -19
- package/dist/esm/foundation/math/LogQuaternion.d.ts +12 -12
- package/dist/esm/foundation/math/MathClassUtil.d.ts +37 -37
- package/dist/esm/foundation/math/MathUtil.d.ts +55 -55
- package/dist/esm/foundation/math/Matrix22.d.ts +69 -69
- package/dist/esm/foundation/math/Matrix33.d.ts +86 -86
- package/dist/esm/foundation/math/Matrix44.d.ts +122 -122
- package/dist/esm/foundation/math/MutableColorRgb.d.ts +32 -33
- package/dist/esm/foundation/math/MutableColorRgba.d.ts +33 -33
- package/dist/esm/foundation/math/MutableMatrix22.d.ts +80 -80
- package/dist/esm/foundation/math/MutableMatrix33.d.ts +110 -110
- package/dist/esm/foundation/math/MutableMatrix44.d.ts +149 -149
- package/dist/esm/foundation/math/MutableQuaternion.d.ts +48 -48
- package/dist/esm/foundation/math/MutableScalar.d.ts +34 -34
- package/dist/esm/foundation/math/MutableVector2.d.ts +80 -75
- package/dist/esm/foundation/math/MutableVector3.d.ts +98 -94
- package/dist/esm/foundation/math/MutableVector4.d.ts +87 -85
- package/dist/esm/foundation/math/Quaternion.d.ts +53 -51
- package/dist/esm/foundation/math/Scalar.d.ts +40 -36
- package/dist/esm/foundation/math/Vector2.d.ts +140 -126
- package/dist/esm/foundation/math/Vector3.d.ts +166 -150
- package/dist/esm/foundation/math/Vector4.d.ts +146 -146
- package/dist/esm/foundation/math/VectorN.d.ts +5 -5
- package/dist/esm/foundation/math/raw/raw_extension.d.ts +59 -23
- package/dist/esm/foundation/memory/Accessor.d.ts +182 -182
- package/dist/esm/foundation/memory/Buffer.d.ts +37 -37
- package/dist/esm/foundation/memory/BufferView.d.ts +60 -60
- package/dist/esm/foundation/misc/Cache.d.ts +19 -0
- package/dist/esm/foundation/misc/DataUtil.d.ts +42 -38
- package/dist/esm/foundation/misc/EnumIO.d.ts +33 -33
- package/dist/esm/foundation/misc/Is.d.ts +26 -26
- package/dist/esm/foundation/misc/ManualCache.d.ts +30 -0
- package/dist/esm/foundation/misc/MiscUtil.d.ts +37 -30
- package/dist/esm/foundation/misc/Option.d.ts +72 -72
- package/dist/esm/foundation/misc/Result.d.ts +40 -40
- package/dist/esm/foundation/misc/RnPromise.d.ts +27 -27
- package/dist/esm/foundation/misc/Time.d.ts +16 -16
- package/dist/esm/foundation/physics/PhysicsStrategy.d.ts +2 -2
- package/dist/esm/foundation/physics/SphereCollider.d.ts +5 -5
- package/dist/esm/foundation/physics/VRMColliderGroup.d.ts +6 -6
- package/dist/esm/foundation/physics/VRMSpringBoneGroup.d.ts +14 -14
- package/dist/esm/foundation/physics/VRMSpringBonePhysicsStrategy.d.ts +39 -39
- package/dist/esm/foundation/renderer/CGAPIResourceRepository.d.ts +5 -5
- package/dist/esm/foundation/renderer/Expression.d.ts +21 -21
- package/dist/esm/foundation/renderer/FrameBuffer.d.ts +32 -32
- package/dist/esm/foundation/renderer/RenderPass.d.ts +113 -115
- package/dist/esm/foundation/system/EventPubSub.d.ts +19 -19
- package/dist/esm/foundation/system/ModuleManager.d.ts +10 -10
- package/dist/esm/foundation/system/System.d.ts +23 -23
- package/dist/esm/foundation/system/SystemState.d.ts +4 -4
- package/dist/esm/foundation/textures/AbstractTexture.d.ts +60 -60
- package/dist/esm/foundation/textures/CubeTexture.d.ts +33 -33
- package/dist/esm/foundation/textures/IRenderable.d.ts +10 -10
- package/dist/esm/foundation/textures/RenderBuffer.d.ts +23 -23
- package/dist/esm/foundation/textures/RenderTargetTexture.d.ts +39 -39
- package/dist/esm/foundation/textures/Texture.d.ts +90 -90
- package/dist/esm/foundation/textures/TextureDataFloat.d.ts +20 -18
- package/dist/esm/foundation/textures/VideoTexture.d.ts +63 -63
- package/dist/esm/index.d.ts +927 -917
- package/dist/esm/index.js +44596 -41597
- package/dist/esm/pbr/main.d.ts +5 -5
- package/dist/esm/sparkgear/SparkGearComponent.d.ts +54 -54
- package/dist/esm/sparkgear/main.d.ts +6 -6
- package/dist/esm/types/BasisTexture.d.ts +23 -23
- package/dist/esm/types/CommonTypes.d.ts +33 -29
- package/dist/esm/types/KTX2Texture.d.ts +67 -67
- package/dist/esm/types/RnM2.d.ts +329 -329
- package/dist/esm/types/TypeConverter.d.ts +1 -1
- package/dist/esm/types/TypeGenerators.d.ts +4 -4
- package/dist/esm/types/VRM.d.ts +160 -160
- package/dist/esm/types/glTF.d.ts +387 -385
- package/dist/esm/types/glTF1.d.ts +88 -88
- package/dist/esm/types/glTF2.d.ts +391 -338
- package/dist/esm/webgl/WebGLContextWrapper.d.ts +99 -99
- package/dist/esm/webgl/WebGLExtendedTypes.d.ts +14 -9
- package/dist/esm/webgl/WebGLExtension.d.ts +24 -24
- package/dist/esm/webgl/WebGLResourceRepository.d.ts +351 -221
- package/dist/esm/webgl/WebGLStrategy.d.ts +27 -22
- package/dist/esm/webgl/WebGLStrategyCommonMethod.d.ts +54 -30
- package/dist/esm/webgl/WebGLStrategyFastest.d.ts +54 -51
- package/dist/esm/webgl/WebGLStrategyUniform.d.ts +44 -40
- package/dist/esm/webgl/getRenderingStrategy.d.ts +4 -4
- package/dist/esm/webgl/main.d.ts +17 -17
- package/dist/esm/webgl/shaders/GLSLShader.d.ts +48 -48
- package/dist/esm/webgl/shaders/nodes/BlockBeginShader.d.ts +16 -16
- package/dist/esm/webgl/shaders/nodes/BlockEndShader.d.ts +16 -16
- package/dist/esm/webgl/shaders/nodes/ClassicShadingShader.d.ts +17 -17
- package/dist/esm/webgl/shaders/nodes/ConstantVariableShader.d.ts +18 -18
- package/dist/esm/webgl/shaders/nodes/EndShader.d.ts +17 -17
- package/dist/esm/webgl/shaders/nodes/IfStatementShader.d.ts +12 -12
- package/dist/esm/webgl/shaders/nodes/TextureFetchShader.d.ts +18 -18
- package/dist/esm/webgl/shaders/nodes/UniformDataShader.d.ts +20 -20
- package/dist/esm/webgl/shaders/nodes/VaryingVariableShader.d.ts +18 -18
- package/dist/esm/webgl/textureLoader/KTX2TextureLoader.d.ts +21 -21
- package/dist/esm/xr/WebVRSystem.d.ts +55 -55
- package/dist/esm/xr/WebXRInput.d.ts +18 -18
- package/dist/esm/xr/WebXRSystem.d.ts +136 -136
- package/dist/esm/xr/main.d.ts +8 -8
- package/package.json +5 -7
- package/dist/VERSION-FILE +0 -2
- package/dist/esm/foundation/components/MeshComponent.test.d.ts +0 -1
- package/dist/esm/foundation/components/SceneGraphComponent.test.d.ts +0 -1
- package/dist/esm/foundation/components/TransformComponent.test.d.ts +0 -1
- package/dist/esm/foundation/core/Entity.test.d.ts +0 -1
- package/dist/esm/foundation/core/EntityRepository.test.d.ts +0 -1
- package/dist/esm/foundation/core/RnObject.test.d.ts +0 -1
- package/dist/esm/foundation/definitions/ShaderVariableTyoe.d.ts +0 -11
- package/dist/esm/foundation/enhanced_js_objects/Array.test.d.ts +0 -5
- package/dist/esm/foundation/geometry/Mesh.test.d.ts +0 -1
- package/dist/esm/foundation/importer/VRizeGltfLoaderExtension.d.ts +0 -21
- package/dist/esm/foundation/materials/core/Material.test.d.ts +0 -1
- package/dist/esm/foundation/materials/core/ShaderityUtility.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/AddShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/VaryingVariableShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/singles/VRizeClassicShadingSingleMaterialNode.d.ts +0 -24
- package/dist/esm/foundation/materials/singles/VRizePbrShadingSingleMaterialNode.d.ts +0 -28
- package/dist/esm/foundation/math/AABB.test.d.ts +0 -1
- package/dist/esm/foundation/math/IdentityMatrix33.test.d.ts +0 -1
- package/dist/esm/foundation/math/IdentityMatrix44.test.d.ts +0 -1
- package/dist/esm/foundation/math/Matrix44.test.d.ts +0 -1
- package/dist/esm/foundation/math/MutableMatrix44..test.d.ts +0 -1
- package/dist/esm/foundation/math/MutableVector4.test.d.ts +0 -1
- package/dist/esm/foundation/math/Vector4.test.d.ts +0 -1
- package/dist/esm/foundation/memory/Accessor.test.d.ts +0 -1
- package/dist/esm/foundation/memory/Buffer.test.d.ts +0 -1
- package/dist/esm/foundation/memory/BufferView.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Is.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Option.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Result.test.d.ts +0 -1
- package/dist/esm/foundation/misc/RnPromise.test.d.ts +0 -1
- package/dist/esm/foundation/renderer/RenderPass.test.d.ts +0 -1
- package/dist/esm/foundation/system/EventPubSub.test.d.ts +0 -1
- package/dist/esm/rhodonite-xr.d.ts +0 -8
- package/dist/esm/types/Option.d.ts +0 -68
- package/dist/esm/types/Option.test.d.ts +0 -1
- package/dist/esm/types/Result.d.ts +0 -32
- package/dist/esm/webgl/WebGLResourceRepository.test.d.ts +0 -1
|
@@ -1,23 +1,59 @@
|
|
|
1
|
-
import type { ArrayType } from '../../../types/CommonTypes';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import type { Array1, Array2, Array3, Array4, ArrayType } from '../../../types/CommonTypes';
|
|
2
|
+
export declare const get1_offsetAsComposition: unique symbol;
|
|
3
|
+
export declare const get2_offsetAsComposition: unique symbol;
|
|
4
|
+
export declare const get3: unique symbol;
|
|
5
|
+
export declare const get3_offset: unique symbol;
|
|
6
|
+
export declare const get3_offsetAsComposition: unique symbol;
|
|
7
|
+
export declare const get4: unique symbol;
|
|
8
|
+
export declare const get4_offset: unique symbol;
|
|
9
|
+
export declare const get4_offsetAsComposition: unique symbol;
|
|
10
|
+
export declare const getN_offset: unique symbol;
|
|
11
|
+
export declare const getN_offsetAsComposition: unique symbol;
|
|
12
|
+
export declare const add2: unique symbol;
|
|
13
|
+
export declare const add2_offset: unique symbol;
|
|
14
|
+
export declare const add3: unique symbol;
|
|
15
|
+
export declare const add3_offset: unique symbol;
|
|
16
|
+
export declare const add4: unique symbol;
|
|
17
|
+
export declare const mulArray3WithScalar_offset: unique symbol;
|
|
18
|
+
export declare const mulArray4WithScalar_offset: unique symbol;
|
|
19
|
+
export declare const mulArrayNWithScalar_offset: unique symbol;
|
|
20
|
+
export declare const add4_offset: unique symbol;
|
|
21
|
+
export declare const qlerp_offsetAsComposition: unique symbol;
|
|
22
|
+
export declare const scalar_lerp_offsetAsComposition: unique symbol;
|
|
23
|
+
export declare const array3_lerp_offsetAsComposition: unique symbol;
|
|
24
|
+
export declare const arrayN_lerp_offsetAsComposition: unique symbol;
|
|
25
|
+
export declare const normalizeArray4: unique symbol;
|
|
26
|
+
declare global {
|
|
27
|
+
interface Extension {
|
|
28
|
+
[get1_offsetAsComposition](this: ArrayType, offsetAsComposition: number): Array1<number>;
|
|
29
|
+
[get2_offsetAsComposition](this: ArrayType, offsetAsComposition: number): Array2<number>;
|
|
30
|
+
[get3](this: ArrayType): Array3<number>;
|
|
31
|
+
[get3_offset](this: ArrayType, offset: number): Array3<number>;
|
|
32
|
+
[get3_offsetAsComposition](this: ArrayType, offsetAsComposition: number): Array3<number>;
|
|
33
|
+
[get4](this: ArrayType): Array4<number>;
|
|
34
|
+
[get4_offset](this: ArrayType, offset: number): Array4<number>;
|
|
35
|
+
[get4_offsetAsComposition](this: ArrayType, offsetAsComposition: number): Array4<number>;
|
|
36
|
+
[getN_offset](this: ArrayType, offset: number, componentN: number): Array<number>;
|
|
37
|
+
[getN_offsetAsComposition](this: ArrayType, offsetAsComposition: number, componentN: number): Array<number>;
|
|
38
|
+
[add2](this: ArrayType, array: ArrayType): ArrayType;
|
|
39
|
+
[add2_offset](this: ArrayType, array: ArrayType, selfOffset: number, argOffset: number): ArrayType;
|
|
40
|
+
[add3](this: ArrayType, array: ArrayType): ArrayType;
|
|
41
|
+
[add3_offset](this: ArrayType, array: ArrayType, selfOffset: number, argOffset: number): ArrayType;
|
|
42
|
+
[add4](this: ArrayType, array: ArrayType): ArrayType;
|
|
43
|
+
[add4_offset](this: ArrayType, array: ArrayType, selfOffset: number, argOffset: number): ArrayType;
|
|
44
|
+
[mulArray3WithScalar_offset](this: ArrayType, offset: number, value: number): Array4<number>;
|
|
45
|
+
[mulArray4WithScalar_offset](this: ArrayType, offset: number, value: number): Array4<number>;
|
|
46
|
+
[mulArrayNWithScalar_offset](this: ArrayType, offset: number, componentN: number, value: number): Array4<number>;
|
|
47
|
+
[qlerp_offsetAsComposition](this: ArrayType, array: ArrayType, ratio: number, selfOffsetAsComposition: number, argOffsetAsComposition: number): Array4<number>;
|
|
48
|
+
[scalar_lerp_offsetAsComposition](this: ArrayType, array: ArrayType, ratio: number, selfOffset: number, argOffset: number): number;
|
|
49
|
+
[array3_lerp_offsetAsComposition](this: ArrayType, array: ArrayType, ratio: number, selfOffsetAsComposition: number, argOffsetAsComposition: number): Array3<number>;
|
|
50
|
+
[arrayN_lerp_offsetAsComposition](this: ArrayType, array: ArrayType, componentN: number, ratio: number, selfOffsetAsComposition: number, argOffsetAsComposition: number): Array<number>;
|
|
51
|
+
[normalizeArray4](this: Array4<number>): Array4<number>;
|
|
52
|
+
}
|
|
53
|
+
interface Array<T> extends Extension {
|
|
54
|
+
}
|
|
55
|
+
interface ReadonlyArray<T> extends Extension {
|
|
56
|
+
}
|
|
57
|
+
interface Float32Array extends Extension {
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -1,182 +1,182 @@
|
|
|
1
|
-
import { ComponentTypeEnum } from '../definitions/ComponentType';
|
|
2
|
-
import { CompositionTypeEnum } from '../definitions/CompositionType';
|
|
3
|
-
import BufferView from './BufferView';
|
|
4
|
-
import Vector2 from '../math/Vector2';
|
|
5
|
-
import Vector3 from '../math/Vector3';
|
|
6
|
-
import Vector4 from '../math/Vector4';
|
|
7
|
-
import MutableVector2 from '../math/MutableVector2';
|
|
8
|
-
import MutableVector3 from '../math/MutableVector3';
|
|
9
|
-
import MutableVector4 from '../math/MutableVector4';
|
|
10
|
-
import Matrix33 from '../math/Matrix33';
|
|
11
|
-
import MutableMatrix33 from '../math/MutableMatrix33';
|
|
12
|
-
import MutableMatrix44 from '../math/MutableMatrix44';
|
|
13
|
-
import { Byte, Index, Count, TypedArray, Size, TypedArrayConstructor } from '../../types/CommonTypes';
|
|
14
|
-
export default class Accessor {
|
|
15
|
-
private __bufferView;
|
|
16
|
-
private __byteOffsetInRawArrayBufferOfBuffer;
|
|
17
|
-
private __compositionType;
|
|
18
|
-
private __componentType;
|
|
19
|
-
private __count;
|
|
20
|
-
private __raw;
|
|
21
|
-
private __dataView?;
|
|
22
|
-
private __typedArray?;
|
|
23
|
-
private __takenCount;
|
|
24
|
-
private __byteStride;
|
|
25
|
-
private __typedArrayClass?;
|
|
26
|
-
private __dataViewGetter;
|
|
27
|
-
private __dataViewSetter;
|
|
28
|
-
private __max;
|
|
29
|
-
private __min;
|
|
30
|
-
private __arrayLength;
|
|
31
|
-
private __normalized;
|
|
32
|
-
private __isMinMixDirty;
|
|
33
|
-
private static __tmpVector4_0;
|
|
34
|
-
private static __tmpVector3_0;
|
|
35
|
-
private static __tmpVector2_0;
|
|
36
|
-
constructor({ bufferView, byteOffsetInBufferView, compositionType, componentType, byteStride, count, raw, max, min, arrayLength, normalized, }: {
|
|
37
|
-
bufferView: BufferView;
|
|
38
|
-
byteOffsetInBufferView: Byte;
|
|
39
|
-
compositionType: CompositionTypeEnum;
|
|
40
|
-
componentType: ComponentTypeEnum;
|
|
41
|
-
byteStride: Byte;
|
|
42
|
-
count: Count;
|
|
43
|
-
raw: ArrayBuffer;
|
|
44
|
-
max?: number[];
|
|
45
|
-
min?: number[];
|
|
46
|
-
arrayLength: Size;
|
|
47
|
-
normalized: boolean;
|
|
48
|
-
});
|
|
49
|
-
getTypedArrayClass(componentType: ComponentTypeEnum): TypedArrayConstructor | undefined;
|
|
50
|
-
getDataViewGetter(componentType: ComponentTypeEnum): string | undefined;
|
|
51
|
-
getDataViewSetter(componentType: ComponentTypeEnum): string | undefined;
|
|
52
|
-
takeOne(): TypedArray;
|
|
53
|
-
get takenCount(): Count;
|
|
54
|
-
get numberOfComponents(): number;
|
|
55
|
-
get componentSizeInBytes(): number;
|
|
56
|
-
get elementSizeInBytes(): number;
|
|
57
|
-
get elementCount(): Count;
|
|
58
|
-
get byteLength(): Byte;
|
|
59
|
-
get componentType(): ComponentTypeEnum;
|
|
60
|
-
get compositionType(): CompositionTypeEnum;
|
|
61
|
-
getTypedArray(): TypedArray;
|
|
62
|
-
get isAoS(): boolean;
|
|
63
|
-
get isSoA(): boolean;
|
|
64
|
-
get byteStride(): number;
|
|
65
|
-
getScalar(i: Index, { indicesAccessor, endian, }: {
|
|
66
|
-
indicesAccessor?: Accessor | undefined;
|
|
67
|
-
endian?: boolean;
|
|
68
|
-
}): number;
|
|
69
|
-
getScalarAt(i: Index, compositionOffset: Index, { indicesAccessor, endian, }: {
|
|
70
|
-
indicesAccessor?: Accessor | undefined;
|
|
71
|
-
endian?: boolean;
|
|
72
|
-
}): number;
|
|
73
|
-
getVec2AsArray(i: Index, { indicesAccessor, endian, }: {
|
|
74
|
-
indicesAccessor?: Accessor | undefined;
|
|
75
|
-
endian?: boolean;
|
|
76
|
-
}): Array<number>;
|
|
77
|
-
getVec3AsArray(i: Index, { indicesAccessor, endian, }: {
|
|
78
|
-
indicesAccessor?: Accessor | undefined;
|
|
79
|
-
endian?: boolean;
|
|
80
|
-
}): Array<number>;
|
|
81
|
-
getVec4AsArray(i: Index, { indicesAccessor, endian, }: {
|
|
82
|
-
indicesAccessor?: Accessor | undefined;
|
|
83
|
-
endian?: boolean;
|
|
84
|
-
}): Array<number>;
|
|
85
|
-
getMat3AsArray(i: Index, { indicesAccessor, endian, }: {
|
|
86
|
-
indicesAccessor?: Accessor | undefined;
|
|
87
|
-
endian?: boolean;
|
|
88
|
-
}): Array<number>;
|
|
89
|
-
getMat4AsArray(i: Index, { indicesAccessor, endian, }: {
|
|
90
|
-
indicesAccessor?: Accessor | undefined;
|
|
91
|
-
endian?: boolean;
|
|
92
|
-
}): Array<number>;
|
|
93
|
-
getVec2(i: Index, { indicesAccessor, endian, }: {
|
|
94
|
-
indicesAccessor?: Accessor | undefined;
|
|
95
|
-
endian?: boolean;
|
|
96
|
-
}): Vector2;
|
|
97
|
-
getVec3(i: Index, { indicesAccessor, endian, }: {
|
|
98
|
-
indicesAccessor?: Accessor | undefined;
|
|
99
|
-
endian?: boolean;
|
|
100
|
-
}): Vector3;
|
|
101
|
-
getVec4(i: Index, { indicesAccessor, endian, }: {
|
|
102
|
-
indicesAccessor?: Accessor | undefined;
|
|
103
|
-
endian?: boolean;
|
|
104
|
-
}): Vector4;
|
|
105
|
-
getMat3(i: Index, { indicesAccessor, endian, }: {
|
|
106
|
-
indicesAccessor?: Accessor | undefined;
|
|
107
|
-
endian?: boolean;
|
|
108
|
-
}): Matrix33;
|
|
109
|
-
getMat4(i: Index, { indicesAccessor, endian, }: {
|
|
110
|
-
indicesAccessor?: Accessor | undefined;
|
|
111
|
-
endian?: boolean;
|
|
112
|
-
}): MutableMatrix44;
|
|
113
|
-
getVec2To(i: Index, out: MutableVector2, { indicesAccessor, endian, }: {
|
|
114
|
-
indicesAccessor?: Accessor | undefined;
|
|
115
|
-
endian?: boolean;
|
|
116
|
-
}): Vector2;
|
|
117
|
-
getVec3To(i: Index, out: MutableVector3, { indicesAccessor, endian, }: {
|
|
118
|
-
indicesAccessor?: Accessor | undefined;
|
|
119
|
-
endian?: boolean;
|
|
120
|
-
}): Vector3;
|
|
121
|
-
getVec4To(i: Index, out: MutableVector4, { indicesAccessor, endian, }: {
|
|
122
|
-
indicesAccessor?: Accessor | undefined;
|
|
123
|
-
endian?: boolean;
|
|
124
|
-
}): Vector4;
|
|
125
|
-
getMat3To(i: Index, out: MutableMatrix33, { indicesAccessor, endian, }: {
|
|
126
|
-
indicesAccessor?: Accessor | undefined;
|
|
127
|
-
endian?: boolean;
|
|
128
|
-
}): Matrix33;
|
|
129
|
-
getMat4To(i: Index, out: MutableMatrix44, { indicesAccessor, endian, }: {
|
|
130
|
-
indicesAccessor?: Accessor | undefined;
|
|
131
|
-
endian?: boolean;
|
|
132
|
-
}): MutableMatrix44;
|
|
133
|
-
setScalar(i: Index, value: number, { indicesAccessor, endian, }: {
|
|
134
|
-
indicesAccessor?: Accessor | undefined;
|
|
135
|
-
endian?: boolean;
|
|
136
|
-
}): void;
|
|
137
|
-
setVec2(i: Index, x: number, y: number, { indicesAccessor, endian, }: {
|
|
138
|
-
indicesAccessor?: Accessor | undefined;
|
|
139
|
-
endian?: boolean;
|
|
140
|
-
}): void;
|
|
141
|
-
setVec3(i: Index, x: number, y: number, z: number, { indicesAccessor, endian, }: {
|
|
142
|
-
indicesAccessor?: Accessor | undefined;
|
|
143
|
-
endian?: boolean;
|
|
144
|
-
}): void;
|
|
145
|
-
setVec4(i: Index, x: number, y: number, z: number, w: number, { indicesAccessor, endian, }: {
|
|
146
|
-
indicesAccessor?: Accessor | undefined;
|
|
147
|
-
endian?: boolean;
|
|
148
|
-
}): void;
|
|
149
|
-
setVec2AsVector(i: Index, vec: Vector2, { indicesAccessor, endian, }: {
|
|
150
|
-
indicesAccessor?: Accessor | undefined;
|
|
151
|
-
endian?: boolean;
|
|
152
|
-
}): void;
|
|
153
|
-
setVec3AsVector(i: Index, vec: Vector3, { indicesAccessor, endian, }: {
|
|
154
|
-
indicesAccessor?: Accessor | undefined;
|
|
155
|
-
endian?: boolean;
|
|
156
|
-
}): void;
|
|
157
|
-
setVec4AsVector(i: Index, vec: Vector4, { indicesAccessor, endian, }: {
|
|
158
|
-
indicesAccessor?: Accessor | undefined;
|
|
159
|
-
endian?: boolean;
|
|
160
|
-
}): void;
|
|
161
|
-
copyFromTypedArray(typedArray: TypedArray): void;
|
|
162
|
-
setScalarAt(i: Index, compositionOffset: Index, value: number, { indicesAccessor, endian, }: {
|
|
163
|
-
indicesAccessor?: Accessor | undefined;
|
|
164
|
-
endian?: boolean;
|
|
165
|
-
}): void;
|
|
166
|
-
setElementFromSameCompositionAccessor(i: Index, accessor: Accessor, secondIdx?: Index): void;
|
|
167
|
-
copyBuffer(accessor: Accessor): void;
|
|
168
|
-
setElementFromAccessor(i: Index, accessor: Accessor, secondIdx?: Index): void;
|
|
169
|
-
addElementFromSameCompositionAccessor(i: Index, accessor: Accessor, coeff: number, secondIdx?: Index): void;
|
|
170
|
-
get arrayBufferOfBufferView(): ArrayBuffer;
|
|
171
|
-
get dataViewOfBufferView(): DataView;
|
|
172
|
-
get byteOffsetInBufferView(): Byte;
|
|
173
|
-
get byteOffsetInBuffer(): Byte;
|
|
174
|
-
get byteOffsetInRawArrayBufferOfBuffer(): number;
|
|
175
|
-
get bufferView(): BufferView;
|
|
176
|
-
get min(): number[];
|
|
177
|
-
get max(): number[];
|
|
178
|
-
get normalized(): boolean;
|
|
179
|
-
calcMinMax(): void;
|
|
180
|
-
get isMinMaxDirty(): boolean;
|
|
181
|
-
get actualByteStride(): number;
|
|
182
|
-
}
|
|
1
|
+
import { ComponentTypeEnum } from '../definitions/ComponentType';
|
|
2
|
+
import { CompositionTypeEnum } from '../definitions/CompositionType';
|
|
3
|
+
import BufferView from './BufferView';
|
|
4
|
+
import Vector2 from '../math/Vector2';
|
|
5
|
+
import Vector3 from '../math/Vector3';
|
|
6
|
+
import Vector4 from '../math/Vector4';
|
|
7
|
+
import MutableVector2 from '../math/MutableVector2';
|
|
8
|
+
import MutableVector3 from '../math/MutableVector3';
|
|
9
|
+
import MutableVector4 from '../math/MutableVector4';
|
|
10
|
+
import Matrix33 from '../math/Matrix33';
|
|
11
|
+
import MutableMatrix33 from '../math/MutableMatrix33';
|
|
12
|
+
import MutableMatrix44 from '../math/MutableMatrix44';
|
|
13
|
+
import { Byte, Index, Count, TypedArray, Size, TypedArrayConstructor } from '../../types/CommonTypes';
|
|
14
|
+
export default class Accessor {
|
|
15
|
+
private __bufferView;
|
|
16
|
+
private __byteOffsetInRawArrayBufferOfBuffer;
|
|
17
|
+
private __compositionType;
|
|
18
|
+
private __componentType;
|
|
19
|
+
private __count;
|
|
20
|
+
private __raw;
|
|
21
|
+
private __dataView?;
|
|
22
|
+
private __typedArray?;
|
|
23
|
+
private __takenCount;
|
|
24
|
+
private __byteStride;
|
|
25
|
+
private __typedArrayClass?;
|
|
26
|
+
private __dataViewGetter;
|
|
27
|
+
private __dataViewSetter;
|
|
28
|
+
private __max;
|
|
29
|
+
private __min;
|
|
30
|
+
private __arrayLength;
|
|
31
|
+
private __normalized;
|
|
32
|
+
private __isMinMixDirty;
|
|
33
|
+
private static __tmpVector4_0;
|
|
34
|
+
private static __tmpVector3_0;
|
|
35
|
+
private static __tmpVector2_0;
|
|
36
|
+
constructor({ bufferView, byteOffsetInBufferView, compositionType, componentType, byteStride, count, raw, max, min, arrayLength, normalized, }: {
|
|
37
|
+
bufferView: BufferView;
|
|
38
|
+
byteOffsetInBufferView: Byte;
|
|
39
|
+
compositionType: CompositionTypeEnum;
|
|
40
|
+
componentType: ComponentTypeEnum;
|
|
41
|
+
byteStride: Byte;
|
|
42
|
+
count: Count;
|
|
43
|
+
raw: ArrayBuffer;
|
|
44
|
+
max?: number[];
|
|
45
|
+
min?: number[];
|
|
46
|
+
arrayLength: Size;
|
|
47
|
+
normalized: boolean;
|
|
48
|
+
});
|
|
49
|
+
getTypedArrayClass(componentType: ComponentTypeEnum): TypedArrayConstructor | undefined;
|
|
50
|
+
getDataViewGetter(componentType: ComponentTypeEnum): string | undefined;
|
|
51
|
+
getDataViewSetter(componentType: ComponentTypeEnum): string | undefined;
|
|
52
|
+
takeOne(): TypedArray;
|
|
53
|
+
get takenCount(): Count;
|
|
54
|
+
get numberOfComponents(): number;
|
|
55
|
+
get componentSizeInBytes(): number;
|
|
56
|
+
get elementSizeInBytes(): number;
|
|
57
|
+
get elementCount(): Count;
|
|
58
|
+
get byteLength(): Byte;
|
|
59
|
+
get componentType(): ComponentTypeEnum;
|
|
60
|
+
get compositionType(): CompositionTypeEnum;
|
|
61
|
+
getTypedArray(): TypedArray;
|
|
62
|
+
get isAoS(): boolean;
|
|
63
|
+
get isSoA(): boolean;
|
|
64
|
+
get byteStride(): number;
|
|
65
|
+
getScalar(i: Index, { indicesAccessor, endian, }: {
|
|
66
|
+
indicesAccessor?: Accessor | undefined;
|
|
67
|
+
endian?: boolean;
|
|
68
|
+
}): number;
|
|
69
|
+
getScalarAt(i: Index, compositionOffset: Index, { indicesAccessor, endian, }: {
|
|
70
|
+
indicesAccessor?: Accessor | undefined;
|
|
71
|
+
endian?: boolean;
|
|
72
|
+
}): number;
|
|
73
|
+
getVec2AsArray(i: Index, { indicesAccessor, endian, }: {
|
|
74
|
+
indicesAccessor?: Accessor | undefined;
|
|
75
|
+
endian?: boolean;
|
|
76
|
+
}): Array<number>;
|
|
77
|
+
getVec3AsArray(i: Index, { indicesAccessor, endian, }: {
|
|
78
|
+
indicesAccessor?: Accessor | undefined;
|
|
79
|
+
endian?: boolean;
|
|
80
|
+
}): Array<number>;
|
|
81
|
+
getVec4AsArray(i: Index, { indicesAccessor, endian, }: {
|
|
82
|
+
indicesAccessor?: Accessor | undefined;
|
|
83
|
+
endian?: boolean;
|
|
84
|
+
}): Array<number>;
|
|
85
|
+
getMat3AsArray(i: Index, { indicesAccessor, endian, }: {
|
|
86
|
+
indicesAccessor?: Accessor | undefined;
|
|
87
|
+
endian?: boolean;
|
|
88
|
+
}): Array<number>;
|
|
89
|
+
getMat4AsArray(i: Index, { indicesAccessor, endian, }: {
|
|
90
|
+
indicesAccessor?: Accessor | undefined;
|
|
91
|
+
endian?: boolean;
|
|
92
|
+
}): Array<number>;
|
|
93
|
+
getVec2(i: Index, { indicesAccessor, endian, }: {
|
|
94
|
+
indicesAccessor?: Accessor | undefined;
|
|
95
|
+
endian?: boolean;
|
|
96
|
+
}): Vector2;
|
|
97
|
+
getVec3(i: Index, { indicesAccessor, endian, }: {
|
|
98
|
+
indicesAccessor?: Accessor | undefined;
|
|
99
|
+
endian?: boolean;
|
|
100
|
+
}): Vector3;
|
|
101
|
+
getVec4(i: Index, { indicesAccessor, endian, }: {
|
|
102
|
+
indicesAccessor?: Accessor | undefined;
|
|
103
|
+
endian?: boolean;
|
|
104
|
+
}): Vector4;
|
|
105
|
+
getMat3(i: Index, { indicesAccessor, endian, }: {
|
|
106
|
+
indicesAccessor?: Accessor | undefined;
|
|
107
|
+
endian?: boolean;
|
|
108
|
+
}): Matrix33;
|
|
109
|
+
getMat4(i: Index, { indicesAccessor, endian, }: {
|
|
110
|
+
indicesAccessor?: Accessor | undefined;
|
|
111
|
+
endian?: boolean;
|
|
112
|
+
}): MutableMatrix44;
|
|
113
|
+
getVec2To(i: Index, out: MutableVector2, { indicesAccessor, endian, }: {
|
|
114
|
+
indicesAccessor?: Accessor | undefined;
|
|
115
|
+
endian?: boolean;
|
|
116
|
+
}): Vector2;
|
|
117
|
+
getVec3To(i: Index, out: MutableVector3, { indicesAccessor, endian, }: {
|
|
118
|
+
indicesAccessor?: Accessor | undefined;
|
|
119
|
+
endian?: boolean;
|
|
120
|
+
}): Vector3;
|
|
121
|
+
getVec4To(i: Index, out: MutableVector4, { indicesAccessor, endian, }: {
|
|
122
|
+
indicesAccessor?: Accessor | undefined;
|
|
123
|
+
endian?: boolean;
|
|
124
|
+
}): Vector4;
|
|
125
|
+
getMat3To(i: Index, out: MutableMatrix33, { indicesAccessor, endian, }: {
|
|
126
|
+
indicesAccessor?: Accessor | undefined;
|
|
127
|
+
endian?: boolean;
|
|
128
|
+
}): Matrix33;
|
|
129
|
+
getMat4To(i: Index, out: MutableMatrix44, { indicesAccessor, endian, }: {
|
|
130
|
+
indicesAccessor?: Accessor | undefined;
|
|
131
|
+
endian?: boolean;
|
|
132
|
+
}): MutableMatrix44;
|
|
133
|
+
setScalar(i: Index, value: number, { indicesAccessor, endian, }: {
|
|
134
|
+
indicesAccessor?: Accessor | undefined;
|
|
135
|
+
endian?: boolean;
|
|
136
|
+
}): void;
|
|
137
|
+
setVec2(i: Index, x: number, y: number, { indicesAccessor, endian, }: {
|
|
138
|
+
indicesAccessor?: Accessor | undefined;
|
|
139
|
+
endian?: boolean;
|
|
140
|
+
}): void;
|
|
141
|
+
setVec3(i: Index, x: number, y: number, z: number, { indicesAccessor, endian, }: {
|
|
142
|
+
indicesAccessor?: Accessor | undefined;
|
|
143
|
+
endian?: boolean;
|
|
144
|
+
}): void;
|
|
145
|
+
setVec4(i: Index, x: number, y: number, z: number, w: number, { indicesAccessor, endian, }: {
|
|
146
|
+
indicesAccessor?: Accessor | undefined;
|
|
147
|
+
endian?: boolean;
|
|
148
|
+
}): void;
|
|
149
|
+
setVec2AsVector(i: Index, vec: Vector2, { indicesAccessor, endian, }: {
|
|
150
|
+
indicesAccessor?: Accessor | undefined;
|
|
151
|
+
endian?: boolean;
|
|
152
|
+
}): void;
|
|
153
|
+
setVec3AsVector(i: Index, vec: Vector3, { indicesAccessor, endian, }: {
|
|
154
|
+
indicesAccessor?: Accessor | undefined;
|
|
155
|
+
endian?: boolean;
|
|
156
|
+
}): void;
|
|
157
|
+
setVec4AsVector(i: Index, vec: Vector4, { indicesAccessor, endian, }: {
|
|
158
|
+
indicesAccessor?: Accessor | undefined;
|
|
159
|
+
endian?: boolean;
|
|
160
|
+
}): void;
|
|
161
|
+
copyFromTypedArray(typedArray: TypedArray): void;
|
|
162
|
+
setScalarAt(i: Index, compositionOffset: Index, value: number, { indicesAccessor, endian, }: {
|
|
163
|
+
indicesAccessor?: Accessor | undefined;
|
|
164
|
+
endian?: boolean;
|
|
165
|
+
}): void;
|
|
166
|
+
setElementFromSameCompositionAccessor(i: Index, accessor: Accessor, secondIdx?: Index): void;
|
|
167
|
+
copyBuffer(accessor: Accessor): void;
|
|
168
|
+
setElementFromAccessor(i: Index, accessor: Accessor, secondIdx?: Index): void;
|
|
169
|
+
addElementFromSameCompositionAccessor(i: Index, accessor: Accessor, coeff: number, secondIdx?: Index): void;
|
|
170
|
+
get arrayBufferOfBufferView(): ArrayBuffer;
|
|
171
|
+
get dataViewOfBufferView(): DataView;
|
|
172
|
+
get byteOffsetInBufferView(): Byte;
|
|
173
|
+
get byteOffsetInBuffer(): Byte;
|
|
174
|
+
get byteOffsetInRawArrayBufferOfBuffer(): number;
|
|
175
|
+
get bufferView(): BufferView;
|
|
176
|
+
get min(): number[];
|
|
177
|
+
get max(): number[];
|
|
178
|
+
get normalized(): boolean;
|
|
179
|
+
calcMinMax(): void;
|
|
180
|
+
get isMinMaxDirty(): boolean;
|
|
181
|
+
get actualByteStride(): number;
|
|
182
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import BufferView from './BufferView';
|
|
2
|
-
import { Byte, TypedArray } from '../../types/CommonTypes';
|
|
3
|
-
import { CompositionTypeEnum } from '../../foundation/definitions/CompositionType';
|
|
4
|
-
import { ComponentTypeEnum } from '../../foundation/definitions/ComponentType';
|
|
5
|
-
export default class Buffer {
|
|
6
|
-
private __byteLength;
|
|
7
|
-
private __byteOffset;
|
|
8
|
-
private __raw;
|
|
9
|
-
private __name;
|
|
10
|
-
private __takenBytesIndex;
|
|
11
|
-
private __bufferViews;
|
|
12
|
-
private __byteAlign;
|
|
13
|
-
constructor({ byteLength, buffer, name, byteAlign, }: {
|
|
14
|
-
byteLength: Byte;
|
|
15
|
-
buffer: ArrayBuffer;
|
|
16
|
-
name: string;
|
|
17
|
-
byteAlign: Byte;
|
|
18
|
-
});
|
|
19
|
-
set name(str: string);
|
|
20
|
-
get name(): string;
|
|
21
|
-
getArrayBuffer(): ArrayBuffer;
|
|
22
|
-
private __padding;
|
|
23
|
-
takeBufferView({ byteLengthToNeed, byteStride, }: {
|
|
24
|
-
byteLengthToNeed: Byte;
|
|
25
|
-
byteStride: Byte;
|
|
26
|
-
}): BufferView;
|
|
27
|
-
takeBufferViewWithByteOffset({ byteLengthToNeed, byteStride, byteOffset, }: {
|
|
28
|
-
byteLengthToNeed: Byte;
|
|
29
|
-
byteStride: Byte;
|
|
30
|
-
byteOffset: Byte;
|
|
31
|
-
}): BufferView;
|
|
32
|
-
_addTakenByteIndex(value: Byte): void;
|
|
33
|
-
get byteLength(): number;
|
|
34
|
-
get takenSizeInByte(): number;
|
|
35
|
-
get byteOffsetInRawArrayBuffer(): number;
|
|
36
|
-
getTypedArray(offset4bytesUnit: number, compositionType: CompositionTypeEnum, componentType: ComponentTypeEnum, length?: number): TypedArray;
|
|
37
|
-
}
|
|
1
|
+
import BufferView from './BufferView';
|
|
2
|
+
import { Byte, TypedArray } from '../../types/CommonTypes';
|
|
3
|
+
import { CompositionTypeEnum } from '../../foundation/definitions/CompositionType';
|
|
4
|
+
import { ComponentTypeEnum } from '../../foundation/definitions/ComponentType';
|
|
5
|
+
export default class Buffer {
|
|
6
|
+
private __byteLength;
|
|
7
|
+
private __byteOffset;
|
|
8
|
+
private __raw;
|
|
9
|
+
private __name;
|
|
10
|
+
private __takenBytesIndex;
|
|
11
|
+
private __bufferViews;
|
|
12
|
+
private __byteAlign;
|
|
13
|
+
constructor({ byteLength, buffer, name, byteAlign, }: {
|
|
14
|
+
byteLength: Byte;
|
|
15
|
+
buffer: ArrayBuffer;
|
|
16
|
+
name: string;
|
|
17
|
+
byteAlign: Byte;
|
|
18
|
+
});
|
|
19
|
+
set name(str: string);
|
|
20
|
+
get name(): string;
|
|
21
|
+
getArrayBuffer(): ArrayBuffer;
|
|
22
|
+
private __padding;
|
|
23
|
+
takeBufferView({ byteLengthToNeed, byteStride, }: {
|
|
24
|
+
byteLengthToNeed: Byte;
|
|
25
|
+
byteStride: Byte;
|
|
26
|
+
}): BufferView;
|
|
27
|
+
takeBufferViewWithByteOffset({ byteLengthToNeed, byteStride, byteOffset, }: {
|
|
28
|
+
byteLengthToNeed: Byte;
|
|
29
|
+
byteStride: Byte;
|
|
30
|
+
byteOffset: Byte;
|
|
31
|
+
}): BufferView;
|
|
32
|
+
_addTakenByteIndex(value: Byte): void;
|
|
33
|
+
get byteLength(): number;
|
|
34
|
+
get takenSizeInByte(): number;
|
|
35
|
+
get byteOffsetInRawArrayBuffer(): number;
|
|
36
|
+
getTypedArray(offset4bytesUnit: number, compositionType: CompositionTypeEnum, componentType: ComponentTypeEnum, length?: number): TypedArray;
|
|
37
|
+
}
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import Buffer from '../memory/Buffer';
|
|
2
|
-
import { CompositionTypeEnum } from '../definitions/CompositionType';
|
|
3
|
-
import { ComponentTypeEnum } from '../definitions/ComponentType';
|
|
4
|
-
import Accessor from './Accessor';
|
|
5
|
-
import { Byte, Count, Size } from '../../types/CommonTypes';
|
|
6
|
-
export default class BufferView {
|
|
7
|
-
private __buffer;
|
|
8
|
-
private __byteOffsetInRawArrayBufferOfBuffer;
|
|
9
|
-
private __byteOffsetInBuffer;
|
|
10
|
-
private __byteLength;
|
|
11
|
-
private __defaultByteStride;
|
|
12
|
-
private __takenByte;
|
|
13
|
-
private __takenAccessorCount;
|
|
14
|
-
private __raw;
|
|
15
|
-
private __accessors;
|
|
16
|
-
private __totalBytesUpToLastAccessor;
|
|
17
|
-
constructor({ buffer, byteOffsetInBuffer, defaultByteStride, byteLength, raw, }: {
|
|
18
|
-
buffer: Buffer;
|
|
19
|
-
byteOffsetInBuffer: Byte;
|
|
20
|
-
defaultByteStride: Byte;
|
|
21
|
-
byteLength: Byte;
|
|
22
|
-
raw: ArrayBuffer;
|
|
23
|
-
});
|
|
24
|
-
get defaultByteStride(): number;
|
|
25
|
-
get byteLength(): number;
|
|
26
|
-
/**
|
|
27
|
-
* byteOffset in Buffer (includes byteOffset of Buffer in it's inner arraybuffer)
|
|
28
|
-
*/
|
|
29
|
-
get byteOffsetInBuffer(): number;
|
|
30
|
-
/**
|
|
31
|
-
* byteOffset in Buffer (includes byteOffset of Buffer in it's inner arraybuffer)
|
|
32
|
-
*/
|
|
33
|
-
get byteOffsetInRawArrayBufferOfBuffer(): number;
|
|
34
|
-
get buffer(): Buffer;
|
|
35
|
-
get isSoA(): boolean;
|
|
36
|
-
get isAoS(): boolean;
|
|
37
|
-
getUint8Array(): Uint8Array;
|
|
38
|
-
takeAccessor({ compositionType, componentType, count, byteStride, max, min, arrayLength, normalized, }: {
|
|
39
|
-
compositionType: CompositionTypeEnum;
|
|
40
|
-
componentType: ComponentTypeEnum;
|
|
41
|
-
count: Count;
|
|
42
|
-
byteStride?: Byte;
|
|
43
|
-
max?: number[];
|
|
44
|
-
min?: number[];
|
|
45
|
-
arrayLength?: Size;
|
|
46
|
-
normalized?: boolean;
|
|
47
|
-
}): Accessor;
|
|
48
|
-
takeAccessorWithByteOffset({ compositionType, componentType, count, byteOffsetInBufferView, byteStride, max, min, normalized, }: {
|
|
49
|
-
compositionType: CompositionTypeEnum;
|
|
50
|
-
componentType: ComponentTypeEnum;
|
|
51
|
-
count: Count;
|
|
52
|
-
byteOffsetInBufferView: Byte;
|
|
53
|
-
byteStride?: Byte;
|
|
54
|
-
max?: number[];
|
|
55
|
-
min?: number[];
|
|
56
|
-
normalized?: boolean;
|
|
57
|
-
}): Accessor;
|
|
58
|
-
private __takeAccessorInner;
|
|
59
|
-
private __takeAccessorInnerWithByteOffset;
|
|
60
|
-
}
|
|
1
|
+
import Buffer from '../memory/Buffer';
|
|
2
|
+
import { CompositionTypeEnum } from '../definitions/CompositionType';
|
|
3
|
+
import { ComponentTypeEnum } from '../definitions/ComponentType';
|
|
4
|
+
import Accessor from './Accessor';
|
|
5
|
+
import { Byte, Count, Size } from '../../types/CommonTypes';
|
|
6
|
+
export default class BufferView {
|
|
7
|
+
private __buffer;
|
|
8
|
+
private __byteOffsetInRawArrayBufferOfBuffer;
|
|
9
|
+
private __byteOffsetInBuffer;
|
|
10
|
+
private __byteLength;
|
|
11
|
+
private __defaultByteStride;
|
|
12
|
+
private __takenByte;
|
|
13
|
+
private __takenAccessorCount;
|
|
14
|
+
private __raw;
|
|
15
|
+
private __accessors;
|
|
16
|
+
private __totalBytesUpToLastAccessor;
|
|
17
|
+
constructor({ buffer, byteOffsetInBuffer, defaultByteStride, byteLength, raw, }: {
|
|
18
|
+
buffer: Buffer;
|
|
19
|
+
byteOffsetInBuffer: Byte;
|
|
20
|
+
defaultByteStride: Byte;
|
|
21
|
+
byteLength: Byte;
|
|
22
|
+
raw: ArrayBuffer;
|
|
23
|
+
});
|
|
24
|
+
get defaultByteStride(): number;
|
|
25
|
+
get byteLength(): number;
|
|
26
|
+
/**
|
|
27
|
+
* byteOffset in Buffer (includes byteOffset of Buffer in it's inner arraybuffer)
|
|
28
|
+
*/
|
|
29
|
+
get byteOffsetInBuffer(): number;
|
|
30
|
+
/**
|
|
31
|
+
* byteOffset in Buffer (includes byteOffset of Buffer in it's inner arraybuffer)
|
|
32
|
+
*/
|
|
33
|
+
get byteOffsetInRawArrayBufferOfBuffer(): number;
|
|
34
|
+
get buffer(): Buffer;
|
|
35
|
+
get isSoA(): boolean;
|
|
36
|
+
get isAoS(): boolean;
|
|
37
|
+
getUint8Array(): Uint8Array;
|
|
38
|
+
takeAccessor({ compositionType, componentType, count, byteStride, max, min, arrayLength, normalized, }: {
|
|
39
|
+
compositionType: CompositionTypeEnum;
|
|
40
|
+
componentType: ComponentTypeEnum;
|
|
41
|
+
count: Count;
|
|
42
|
+
byteStride?: Byte;
|
|
43
|
+
max?: number[];
|
|
44
|
+
min?: number[];
|
|
45
|
+
arrayLength?: Size;
|
|
46
|
+
normalized?: boolean;
|
|
47
|
+
}): Accessor;
|
|
48
|
+
takeAccessorWithByteOffset({ compositionType, componentType, count, byteOffsetInBufferView, byteStride, max, min, normalized, }: {
|
|
49
|
+
compositionType: CompositionTypeEnum;
|
|
50
|
+
componentType: ComponentTypeEnum;
|
|
51
|
+
count: Count;
|
|
52
|
+
byteOffsetInBufferView: Byte;
|
|
53
|
+
byteStride?: Byte;
|
|
54
|
+
max?: number[];
|
|
55
|
+
min?: number[];
|
|
56
|
+
normalized?: boolean;
|
|
57
|
+
}): Accessor;
|
|
58
|
+
private __takeAccessorInner;
|
|
59
|
+
private __takeAccessorInnerWithByteOffset;
|
|
60
|
+
}
|