@galacean/engine-core 1.6.7 → 1.6.8
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/package.json +3 -3
- package/dist/main.js +0 -37541
- package/dist/main.js.map +0 -1
- package/dist/module.js +0 -37259
- package/dist/module.js.map +0 -1
- package/types/2d/assembler/ISpriteAssembler.d.ts +0 -11
- package/types/2d/assembler/ISpriteRenderer.d.ts +0 -16
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +0 -13
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +0 -15
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +0 -17
- package/types/2d/atlas/FontAtlas.d.ts +0 -1
- package/types/2d/atlas/SpriteAtlas.d.ts +0 -32
- package/types/2d/atlas/types.d.ts +0 -69
- package/types/2d/enums/FontStyle.d.ts +0 -11
- package/types/2d/enums/SpriteDrawMode.d.ts +0 -11
- package/types/2d/enums/SpriteMaskInteraction.d.ts +0 -11
- package/types/2d/enums/SpriteModifyFlags.d.ts +0 -23
- package/types/2d/enums/SpriteTileMode.d.ts +0 -11
- package/types/2d/enums/TextAlignment.d.ts +0 -22
- package/types/2d/enums/TextOverflow.d.ts +0 -9
- package/types/2d/index.d.ts +0 -16
- package/types/2d/sprite/Sprite.d.ts +0 -106
- package/types/2d/sprite/SpriteMask.d.ts +0 -70
- package/types/2d/sprite/SpriteRenderer.d.ts +0 -95
- package/types/2d/sprite/index.d.ts +0 -3
- package/types/2d/text/CharInfo.d.ts +0 -1
- package/types/2d/text/CharRenderInfo.d.ts +0 -1
- package/types/2d/text/Font.d.ts +0 -21
- package/types/2d/text/ITextRenderer.d.ts +0 -8
- package/types/2d/text/SubFont.d.ts +0 -1
- package/types/2d/text/TextRenderer.d.ts +0 -122
- package/types/2d/text/TextUtils.d.ts +0 -1
- package/types/2d/text/index.d.ts +0 -5
- package/types/Background.d.ts +0 -53
- package/types/BasicResources.d.ts +0 -2
- package/types/BoolUpdateFlag.d.ts +0 -12
- package/types/Camera.d.ts +0 -321
- package/types/Canvas.d.ts +0 -19
- package/types/Component.d.ts +0 -27
- package/types/ComponentsDependencies.d.ts +0 -25
- package/types/ComponentsManager.d.ts +0 -52
- package/types/Engine.d.ts +0 -150
- package/types/EngineSettings.d.ts +0 -5
- package/types/Entity.d.ts +0 -171
- package/types/Layer.d.ts +0 -73
- package/types/Platform.d.ts +0 -15
- package/types/Polyfill.d.ts +0 -1
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +0 -55
- package/types/RenderPipeline/BatchUtils.d.ts +0 -1
- package/types/RenderPipeline/BatcherManager.d.ts +0 -1
- package/types/RenderPipeline/Blitter.d.ts +0 -28
- package/types/RenderPipeline/CullingResults.d.ts +0 -1
- package/types/RenderPipeline/DepthOnlyPass.d.ts +0 -1
- package/types/RenderPipeline/MaskManager.d.ts +0 -1
- package/types/RenderPipeline/OpaqueTexturePass.d.ts +0 -1
- package/types/RenderPipeline/PipelinePass.d.ts +0 -16
- package/types/RenderPipeline/PipelineUtils.d.ts +0 -1
- package/types/RenderPipeline/PrimitiveChunk.d.ts +0 -1
- package/types/RenderPipeline/PrimitiveChunkManager.d.ts +0 -1
- package/types/RenderPipeline/RenderContext.d.ts +0 -1
- package/types/RenderPipeline/RenderElement.d.ts +0 -12
- package/types/RenderPipeline/RenderQueue.d.ts +0 -1
- package/types/RenderPipeline/SubPrimitiveChunk.d.ts +0 -1
- package/types/RenderPipeline/SubRenderElement.d.ts +0 -22
- package/types/RenderPipeline/VertexArea.d.ts +0 -1
- package/types/RenderPipeline/enums/PipelineStage.d.ts +0 -11
- package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +0 -1
- package/types/RenderPipeline/index.d.ts +0 -5
- package/types/Renderer.d.ts +0 -135
- package/types/Scene.d.ts +0 -183
- package/types/SceneManager.d.ts +0 -51
- package/types/Script.d.ts +0 -144
- package/types/SystemInfo.d.ts +0 -27
- package/types/Transform.d.ts +0 -304
- package/types/UpdateFlag.d.ts +0 -20
- package/types/UpdateFlagManager.d.ts +0 -1
- package/types/Utils.d.ts +0 -37
- package/types/VirtualCamera.d.ts +0 -1
- package/types/animation/AnimationClip.d.ts +0 -87
- package/types/animation/AnimationClipCurveBinding.d.ts +0 -31
- package/types/animation/AnimationEvent.d.ts +0 -11
- package/types/animation/Animator.d.ts +0 -154
- package/types/animation/AnimatorCondition.d.ts +0 -13
- package/types/animation/AnimatorController.d.ts +0 -72
- package/types/animation/AnimatorControllerLayer.d.ts +0 -21
- package/types/animation/AnimatorControllerParameter.d.ts +0 -14
- package/types/animation/AnimatorLayerMask.d.ts +0 -45
- package/types/animation/AnimatorState.d.ts +0 -69
- package/types/animation/AnimatorStateMachine.d.ts +0 -85
- package/types/animation/AnimatorStateTransition.d.ts +0 -59
- package/types/animation/AnimatorStateTransitionCollection.d.ts +0 -1
- package/types/animation/Keyframe.d.ts +0 -20
- package/types/animation/LayerPathMask.d.ts +0 -16
- package/types/animation/StateMachineScript.d.ts +0 -32
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationCurve.d.ts +0 -39
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +0 -11
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationRectCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationRefCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationStringCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +0 -8
- package/types/animation/animationCurve/index.d.ts +0 -13
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +0 -1
- package/types/animation/enums/AnimatorConditionMode.d.ts +0 -17
- package/types/animation/enums/AnimatorCullingMode.d.ts +0 -9
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +0 -4
- package/types/animation/enums/AnimatorStatePlayState.d.ts +0 -1
- package/types/animation/enums/InterpolationType.d.ts +0 -13
- package/types/animation/enums/LayerState.d.ts +0 -15
- package/types/animation/enums/PlayState.d.ts +0 -13
- package/types/animation/enums/WrapMode.d.ts +0 -9
- package/types/animation/index.d.ts +0 -25
- package/types/animation/internal/AnimationCurveLayerOwner.d.ts +0 -1
- package/types/animation/internal/AnimationEventHandler.d.ts +0 -1
- package/types/animation/internal/AnimatorLayerData.d.ts +0 -1
- package/types/animation/internal/AnimatorStateData.d.ts +0 -1
- package/types/animation/internal/AnimatorStatePlayData.d.ts +0 -1
- package/types/animation/internal/AnimatorTempValue.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +0 -5
- package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/asset/AssetPromise.d.ts +0 -88
- package/types/asset/AssetType.d.ts +0 -66
- package/types/asset/ContentRestorer.d.ts +0 -17
- package/types/asset/GraphicsResource.d.ts +0 -9
- package/types/asset/IReferable.d.ts +0 -2
- package/types/asset/LoadItem.d.ts +0 -40
- package/types/asset/Loader.d.ts +0 -37
- package/types/asset/ReferResource.d.ts +0 -23
- package/types/asset/ResourceManager.d.ts +0 -121
- package/types/asset/request.d.ts +0 -36
- package/types/audio/AudioClip.d.ts +0 -24
- package/types/audio/AudioManager.d.ts +0 -1
- package/types/audio/AudioSource.d.ts +0 -72
- package/types/audio/index.d.ts +0 -3
- package/types/base/Constant.d.ts +0 -116
- package/types/base/EngineObject.d.ts +0 -25
- package/types/base/EventDispatcher.d.ts +0 -66
- package/types/base/Logger.d.ts +0 -11
- package/types/base/StaticInterfaceImplement.d.ts +0 -5
- package/types/base/Time.d.ts +0 -44
- package/types/base/index.d.ts +0 -5
- package/types/clone/CloneManager.d.ts +0 -31
- package/types/clone/ComponentCloner.d.ts +0 -17
- package/types/clone/enums/CloneMode.d.ts +0 -13
- package/types/enums/ActiveChangeFlag.d.ts +0 -6
- package/types/enums/AntiAliasing.d.ts +0 -7
- package/types/enums/BackgroundMode.d.ts +0 -9
- package/types/enums/BackgroundTextureFillMode.d.ts +0 -8
- package/types/enums/CameraClearFlags.d.ts +0 -13
- package/types/enums/CameraModifyFlags.d.ts +0 -17
- package/types/enums/CameraType.d.ts +0 -1
- package/types/enums/DepthTextureMode.d.ts +0 -7
- package/types/enums/Downsampling.d.ts +0 -11
- package/types/enums/EntityModifyFlags.d.ts +0 -9
- package/types/enums/FogMode.d.ts +0 -13
- package/types/enums/MSAASamples.d.ts +0 -13
- package/types/enums/ReplacementFailureStrategy.d.ts +0 -9
- package/types/enums/SpriteMaskLayer.d.ts +0 -73
- package/types/env-probe/CubeProbe.d.ts +0 -27
- package/types/env-probe/Probe.d.ts +0 -52
- package/types/env-probe/index.d.ts +0 -2
- package/types/graphic/Buffer.d.ts +0 -114
- package/types/graphic/BufferUtil.d.ts +0 -12
- package/types/graphic/IndexBufferBinding.d.ts +0 -21
- package/types/graphic/Mesh.d.ts +0 -58
- package/types/graphic/Primitive.d.ts +0 -1
- package/types/graphic/SubMesh.d.ts +0 -8
- package/types/graphic/SubPrimitive.d.ts +0 -19
- package/types/graphic/VertexBufferBinding.d.ts +0 -20
- package/types/graphic/VertexElement.d.ts +0 -48
- package/types/graphic/enums/BufferBindFlag.d.ts +0 -9
- package/types/graphic/enums/BufferUsage.d.ts +0 -11
- package/types/graphic/enums/IndexFormat.d.ts +0 -11
- package/types/graphic/enums/MeshTopology.d.ts +0 -19
- package/types/graphic/enums/SetDataOptions.d.ts +0 -9
- package/types/graphic/enums/VertexElementFormat.d.ts +0 -37
- package/types/graphic/index.d.ts +0 -15
- package/types/index.d.ts +0 -67
- package/types/input/InputManager.d.ts +0 -65
- package/types/input/enums/Keys.d.ts +0 -398
- package/types/input/enums/PointerButton.d.ts +0 -33
- package/types/input/enums/PointerPhase.d.ts +0 -15
- package/types/input/index.d.ts +0 -8
- package/types/input/interface/IInput.d.ts +0 -10
- package/types/input/keyboard/KeyboardManager.d.ts +0 -1
- package/types/input/pointer/Pointer.d.ts +0 -31
- package/types/input/pointer/PointerEventData.d.ts +0 -12
- package/types/input/pointer/PointerManager.d.ts +0 -9
- package/types/input/pointer/emitter/IHitResult.d.ts +0 -1
- package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +0 -1
- package/types/input/pointer/emitter/PointerEventEmitter.d.ts +0 -30
- package/types/input/wheel/WheelManager.d.ts +0 -1
- package/types/lighting/AmbientLight.d.ts +0 -70
- package/types/lighting/DirectLight.d.ts +0 -32
- package/types/lighting/KHR_lights.d.ts +0 -4
- package/types/lighting/Light.d.ts +0 -45
- package/types/lighting/LightManager.d.ts +0 -12
- package/types/lighting/PointLight.d.ts +0 -26
- package/types/lighting/SpotLight.d.ts +0 -45
- package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +0 -79
- package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +0 -1
- package/types/lighting/ambientOcclusion/index.d.ts +0 -2
- package/types/lighting/enums/AmbientOcclusionQuality.d.ts +0 -11
- package/types/lighting/enums/DiffuseMode.d.ts +0 -13
- package/types/lighting/index.d.ts +0 -7
- package/types/material/BaseMaterial.d.ts +0 -88
- package/types/material/BlinnPhongMaterial.d.ts +0 -68
- package/types/material/Material.d.ts +0 -52
- package/types/material/PBRMaterial.d.ts +0 -311
- package/types/material/UnlitMaterial.d.ts +0 -33
- package/types/material/enums/BlendMode.d.ts +0 -9
- package/types/material/enums/Refraction.d.ts +0 -9
- package/types/material/enums/RenderFace.d.ts +0 -11
- package/types/material/enums/TextureCoordinate.d.ts +0 -13
- package/types/material/index.d.ts +0 -9
- package/types/material/utils/PrefilteredDFG.d.ts +0 -7
- package/types/mesh/BlendShape.d.ts +0 -39
- package/types/mesh/BlendShapeFrame.d.ts +0 -44
- package/types/mesh/BlendShapeManager.d.ts +0 -1
- package/types/mesh/BufferMesh.d.ts +0 -59
- package/types/mesh/MeshRenderer.d.ts +0 -25
- package/types/mesh/ModelMesh.d.ts +0 -254
- package/types/mesh/PrimitiveMesh.d.ts +0 -112
- package/types/mesh/PrimitiveMeshRestorer.d.ts +0 -1
- package/types/mesh/Skin.d.ts +0 -35
- package/types/mesh/SkinnedMeshRenderer.d.ts +0 -50
- package/types/mesh/enums/VertexAttribute.d.ts +0 -33
- package/types/mesh/index.d.ts +0 -9
- package/types/particle/ParticleBufferUtils.d.ts +0 -1
- package/types/particle/ParticleGenerator.d.ts +0 -94
- package/types/particle/ParticleMaterial.d.ts +0 -38
- package/types/particle/ParticleRenderer.d.ts +0 -47
- package/types/particle/enums/ParticleCurveMode.d.ts +0 -9
- package/types/particle/enums/ParticleGradientMode.d.ts +0 -9
- package/types/particle/enums/ParticleRandomSubSeeds.d.ts +0 -1
- package/types/particle/enums/ParticleRenderMode.d.ts +0 -17
- package/types/particle/enums/ParticleScaleMode.d.ts +0 -11
- package/types/particle/enums/ParticleSimulationSpace.d.ts +0 -9
- package/types/particle/enums/ParticleStopMode.d.ts +0 -6
- package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +0 -1
- package/types/particle/enums/attributes/MeshParticleVertexAttribute.d.ts +0 -5
- package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +0 -1
- package/types/particle/index.d.ts +0 -22
- package/types/particle/modules/Burst.d.ts +0 -14
- package/types/particle/modules/ColorOverLifetimeModule.d.ts +0 -20
- package/types/particle/modules/EmissionModule.d.ts +0 -48
- package/types/particle/modules/ForceOverLifetimeModule.d.ts +0 -51
- package/types/particle/modules/MainModule.d.ts +0 -104
- package/types/particle/modules/ParticleCompositeCurve.d.ts +0 -81
- package/types/particle/modules/ParticleCompositeGradient.d.ts +0 -55
- package/types/particle/modules/ParticleCurve.d.ts +0 -63
- package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -17
- package/types/particle/modules/ParticleGradient.d.ts +0 -114
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +0 -34
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +0 -52
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +0 -39
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +0 -54
- package/types/particle/modules/shape/BaseShape.d.ts +0 -22
- package/types/particle/modules/shape/BoxShape.d.ts +0 -17
- package/types/particle/modules/shape/CircleShape.d.ts +0 -35
- package/types/particle/modules/shape/ConeShape.d.ts +0 -45
- package/types/particle/modules/shape/HemisphereShape.d.ts +0 -14
- package/types/particle/modules/shape/MeshShape.d.ts +0 -21
- package/types/particle/modules/shape/ShapeUtils.d.ts +0 -1
- package/types/particle/modules/shape/SphereShape.d.ts +0 -14
- package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +0 -9
- package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +0 -17
- package/types/particle/modules/shape/index.d.ts +0 -8
- package/types/physics/CharacterController.d.ts +0 -51
- package/types/physics/Collider.d.ts +0 -43
- package/types/physics/Collision.d.ts +0 -22
- package/types/physics/ContactPoint.d.ts +0 -14
- package/types/physics/DynamicCollider.d.ts +0 -192
- package/types/physics/HitResult.d.ts +0 -18
- package/types/physics/PhysicsMaterial.d.ts +0 -42
- package/types/physics/PhysicsScene.d.ts +0 -276
- package/types/physics/StaticCollider.d.ts +0 -7
- package/types/physics/enums/ColliderShapeChangeFlag.d.ts +0 -1
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +0 -11
- package/types/physics/enums/ControllerCollisionFlag.d.ts +0 -11
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +0 -9
- package/types/physics/enums/HingeJointFlag.d.ts +0 -1
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +0 -13
- package/types/physics/enums/index.d.ts +0 -4
- package/types/physics/index.d.ts +0 -12
- package/types/physics/joint/FixedJoint.d.ts +0 -4
- package/types/physics/joint/HingeJoint.d.ts +0 -61
- package/types/physics/joint/Joint.d.ts +0 -81
- package/types/physics/joint/JointLimits.d.ts +0 -39
- package/types/physics/joint/JointMotor.d.ts +0 -32
- package/types/physics/joint/SpringJoint.d.ts +0 -38
- package/types/physics/joint/index.d.ts +0 -6
- package/types/physics/shape/BoxColliderShape.d.ts +0 -16
- package/types/physics/shape/CapsuleColliderShape.d.ts +0 -27
- package/types/physics/shape/ColliderShape.d.ts +0 -61
- package/types/physics/shape/PlaneColliderShape.d.ts +0 -9
- package/types/physics/shape/SphereColliderShape.d.ts +0 -14
- package/types/physics/shape/index.d.ts +0 -5
- package/types/postProcess/FinalPass.d.ts +0 -1
- package/types/postProcess/PostProcess.d.ts +0 -64
- package/types/postProcess/PostProcessEffect.d.ts +0 -26
- package/types/postProcess/PostProcessEffectParameter.d.ts +0 -119
- package/types/postProcess/PostProcessManager.d.ts +0 -38
- package/types/postProcess/PostProcessPass.d.ts +0 -50
- package/types/postProcess/PostProcessUberPass.d.ts +0 -25
- package/types/postProcess/effects/BloomEffect.d.ts +0 -50
- package/types/postProcess/effects/TonemappingEffect.d.ts +0 -25
- package/types/postProcess/effects/index.d.ts +0 -2
- package/types/postProcess/index.d.ts +0 -8
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +0 -7
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +0 -20
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +0 -36
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +0 -37
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +0 -40
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +0 -41
- package/types/renderingHardwareInterface/index.d.ts +0 -6
- package/types/shader/Shader.d.ts +0 -119
- package/types/shader/ShaderData.d.ts +0 -350
- package/types/shader/ShaderMacro.d.ts +0 -26
- package/types/shader/ShaderMacroCollection.d.ts +0 -1
- package/types/shader/ShaderPart.d.ts +0 -46
- package/types/shader/ShaderPass.d.ts +0 -25
- package/types/shader/ShaderPool.d.ts +0 -1
- package/types/shader/ShaderProgram.d.ts +0 -1
- package/types/shader/ShaderProgramPool.d.ts +0 -1
- package/types/shader/ShaderProperty.d.ts +0 -20
- package/types/shader/ShaderTagKey.d.ts +0 -16
- package/types/shader/ShaderUniform.d.ts +0 -1
- package/types/shader/ShaderUniformBlock.d.ts +0 -1
- package/types/shader/SubShader.d.ts +0 -18
- package/types/shader/enums/BlendFactor.d.ts +0 -32
- package/types/shader/enums/BlendOperation.d.ts +0 -16
- package/types/shader/enums/ColorWriteMask.d.ts +0 -18
- package/types/shader/enums/CompareFunction.d.ts +0 -22
- package/types/shader/enums/CullMode.d.ts +0 -12
- package/types/shader/enums/RenderQueueType.d.ts +0 -11
- package/types/shader/enums/RenderStateElementKey.d.ts +0 -60
- package/types/shader/enums/ShaderDataGroup.d.ts +0 -15
- package/types/shader/enums/ShaderLanguage.d.ts +0 -9
- package/types/shader/enums/ShaderPropertyType.d.ts +0 -27
- package/types/shader/enums/StencilOperation.d.ts +0 -22
- package/types/shader/index.d.ts +0 -19
- package/types/shader/state/BlendState.d.ts +0 -16
- package/types/shader/state/DepthState.d.ts +0 -14
- package/types/shader/state/RasterState.d.ts +0 -13
- package/types/shader/state/RenderState.d.ts +0 -21
- package/types/shader/state/RenderTargetBlendState.d.ts +0 -24
- package/types/shader/state/StencilState.d.ts +0 -34
- package/types/shader/state/index.d.ts +0 -6
- package/types/shaderlib/ShaderFactory.d.ts +0 -20
- package/types/shaderlib/ShaderLib.d.ts +0 -73
- package/types/shaderlib/index.d.ts +0 -1
- package/types/shaderlib/particle/index.d.ts +0 -15
- package/types/shaderlib/pbr/index.d.ts +0 -11
- package/types/shaderlib/shadow/index.d.ts +0 -8
- package/types/shadow/CascadedShadowCasterPass.d.ts +0 -45
- package/types/shadow/ShadowSliceData.d.ts +0 -1
- package/types/shadow/ShadowUtils.d.ts +0 -1
- package/types/shadow/enum/ShadowCascadesMode.d.ts +0 -11
- package/types/shadow/enum/ShadowResolution.d.ts +0 -13
- package/types/shadow/enum/ShadowType.d.ts +0 -13
- package/types/shadow/index.d.ts +0 -3
- package/types/sky/Sky.d.ts +0 -22
- package/types/sky/SkyBoxMaterial.d.ts +0 -43
- package/types/sky/SkyProceduralMaterial.d.ts +0 -72
- package/types/sky/index.d.ts +0 -3
- package/types/texture/RenderTarget.d.ts +0 -91
- package/types/texture/Texture.d.ts +0 -87
- package/types/texture/Texture2D.d.ts +0 -71
- package/types/texture/Texture2DArray.d.ts +0 -82
- package/types/texture/TextureCube.d.ts +0 -71
- package/types/texture/TextureUtils.d.ts +0 -1
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +0 -23
- package/types/texture/enums/TextureCubeFace.d.ts +0 -17
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +0 -21
- package/types/texture/enums/TextureFilterMode.d.ts +0 -11
- package/types/texture/enums/TextureFormat.d.ts +0 -87
- package/types/texture/enums/TextureUsage.d.ts +0 -9
- package/types/texture/enums/TextureWrapMode.d.ts +0 -11
- package/types/texture/index.d.ts +0 -13
- package/types/trail/TrailMaterial.d.ts +0 -5
- package/types/trail/TrailRenderer.d.ts +0 -35
- package/types/trail/index.d.ts +0 -2
- package/types/ui/IUICanvas.d.ts +0 -1
- package/types/ui/UIUtils.d.ts +0 -12
- package/types/utils/ClearableObjectPool.d.ts +0 -16
- package/types/utils/DisorderedArray.d.ts +0 -70
- package/types/utils/ObjectPool.d.ts +0 -16
- package/types/utils/ReturnableObjectPool.d.ts +0 -16
- package/types/utils/SafeLoopArray.d.ts +0 -46
- package/types/utils/index.d.ts +0 -4
- package/types/xr/XRManager.d.ts +0 -5
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Camera } from "../Camera";
|
|
2
|
-
import { Layer } from "../Layer";
|
|
3
|
-
import { Script } from "../Script";
|
|
4
|
-
import { Texture } from "../texture";
|
|
5
|
-
/**
|
|
6
|
-
* Environmental probes, providing necessary capabilities such as reflection and refraction.
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* const probe = cameraEntity.addComponent( CubeProbe )
|
|
10
|
-
* probe.onTextureChange = cubeTexture => {
|
|
11
|
-
* envLight.specularTexture = cubeTexture;
|
|
12
|
-
* skybox.specularTexture = cubeTexture;
|
|
13
|
-
* }
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare abstract class Probe extends Script {
|
|
17
|
-
/**
|
|
18
|
-
* Probe's layer, render everything by default.
|
|
19
|
-
*/
|
|
20
|
-
probeLayer: Layer;
|
|
21
|
-
/**
|
|
22
|
-
* The width of the probe rendering target.
|
|
23
|
-
*/
|
|
24
|
-
width: number;
|
|
25
|
-
/**
|
|
26
|
-
* The height of the probe rendering target.
|
|
27
|
-
*/
|
|
28
|
-
height: number;
|
|
29
|
-
/**
|
|
30
|
-
* When using WebGL2, you can turn on MSAA at the hardware layer.
|
|
31
|
-
*/
|
|
32
|
-
antiAliasing: number;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the probe is rendered to the cube color texture.
|
|
35
|
-
*/
|
|
36
|
-
protected readonly _isCube: boolean;
|
|
37
|
-
private _oriCameraRenderTarget;
|
|
38
|
-
private _renderTarget;
|
|
39
|
-
private _renderTargetSwap;
|
|
40
|
-
private _activeRenderTarget;
|
|
41
|
-
private _camera;
|
|
42
|
-
private _oriCameraCullingMask;
|
|
43
|
-
private get _texture();
|
|
44
|
-
/**
|
|
45
|
-
* Provide hooks for users to exchange Texture.
|
|
46
|
-
* @remarks Prevent issue: Feedback Loops Between Textures and the Framebuffer.
|
|
47
|
-
*/
|
|
48
|
-
onTextureChange(renderColorTexture: Texture): void;
|
|
49
|
-
onBeginRender(camera: Camera): void;
|
|
50
|
-
onEndRender(camera: Camera): void;
|
|
51
|
-
protected _reset(): void;
|
|
52
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { GraphicsResource } from "../asset/GraphicsResource";
|
|
2
|
-
import { Engine } from "../Engine";
|
|
3
|
-
import { BufferBindFlag } from "./enums/BufferBindFlag";
|
|
4
|
-
import { BufferUsage } from "./enums/BufferUsage";
|
|
5
|
-
import { SetDataOptions } from "./enums/SetDataOptions";
|
|
6
|
-
/**
|
|
7
|
-
* Buffer.
|
|
8
|
-
*/
|
|
9
|
-
export declare class Buffer extends GraphicsResource {
|
|
10
|
-
private _type;
|
|
11
|
-
private _byteLength;
|
|
12
|
-
private _bufferUsage;
|
|
13
|
-
private _platformBuffer;
|
|
14
|
-
private _readable;
|
|
15
|
-
private _data;
|
|
16
|
-
/**
|
|
17
|
-
* Buffer binding flag.
|
|
18
|
-
*/
|
|
19
|
-
get type(): BufferBindFlag;
|
|
20
|
-
/**
|
|
21
|
-
* Byte length.
|
|
22
|
-
*/
|
|
23
|
-
get byteLength(): number;
|
|
24
|
-
/**
|
|
25
|
-
* Buffer usage.
|
|
26
|
-
*/
|
|
27
|
-
get bufferUsage(): BufferUsage;
|
|
28
|
-
/**
|
|
29
|
-
* If buffer is readable.
|
|
30
|
-
*/
|
|
31
|
-
get readable(): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Buffer data cache.
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Buffer must be readable.
|
|
37
|
-
* If the data you get is modified, must call `setData()` to update buffer to GPU.
|
|
38
|
-
*/
|
|
39
|
-
get data(): Uint8Array;
|
|
40
|
-
/**
|
|
41
|
-
* Create Buffer.
|
|
42
|
-
* @param engine - Engine
|
|
43
|
-
* @param type - Buffer binding flag
|
|
44
|
-
* @param byteLength - Byte length
|
|
45
|
-
* @param bufferUsage - Buffer usage
|
|
46
|
-
* @param readable - If buffer is readable
|
|
47
|
-
*/
|
|
48
|
-
constructor(engine: Engine, type: BufferBindFlag, byteLength: number, bufferUsage?: BufferUsage, readable?: boolean);
|
|
49
|
-
/**
|
|
50
|
-
* Create Buffer.
|
|
51
|
-
* @param engine - Engine
|
|
52
|
-
* @param type - Buffer binding flag
|
|
53
|
-
* @param data - Buffer data, if `readable` is true, the`data` property will store a copy of this
|
|
54
|
-
* @param bufferUsage - Buffer usage
|
|
55
|
-
* @param readable - If buffer is readable
|
|
56
|
-
*/
|
|
57
|
-
constructor(engine: Engine, type: BufferBindFlag, data: ArrayBuffer | ArrayBufferView, bufferUsage?: BufferUsage, readable?: boolean);
|
|
58
|
-
/**
|
|
59
|
-
* Bind buffer.
|
|
60
|
-
*/
|
|
61
|
-
bind(): void;
|
|
62
|
-
/**
|
|
63
|
-
* Set buffer data.
|
|
64
|
-
* @param data - Input buffer data
|
|
65
|
-
*/
|
|
66
|
-
setData(data: ArrayBuffer | ArrayBufferView): void;
|
|
67
|
-
/**
|
|
68
|
-
* Set buffer data.
|
|
69
|
-
* @param data - Input buffer data
|
|
70
|
-
* @param bufferByteOffset - buffer byte offset
|
|
71
|
-
*/
|
|
72
|
-
setData(data: ArrayBuffer | ArrayBufferView, bufferByteOffset: number): void;
|
|
73
|
-
/**
|
|
74
|
-
* Set buffer data.
|
|
75
|
-
* @param data - Input buffer data
|
|
76
|
-
* @param bufferByteOffset - Buffer byte offset
|
|
77
|
-
* @param dataOffset - Buffer byte offset
|
|
78
|
-
* @param dataLength - Data length
|
|
79
|
-
*/
|
|
80
|
-
setData(data: ArrayBuffer | ArrayBufferView, bufferByteOffset: number, dataOffset: number, dataLength?: number): void;
|
|
81
|
-
/**
|
|
82
|
-
* Set buffer data.
|
|
83
|
-
* @param data - Input buffer data
|
|
84
|
-
* @param bufferByteOffset - Buffer byte offset
|
|
85
|
-
* @param dataOffset - Buffer byte offset
|
|
86
|
-
* @param dataLength - Data length
|
|
87
|
-
* @param options - Update strategy: None/Discard/NoOverwrite
|
|
88
|
-
*/
|
|
89
|
-
setData(data: ArrayBuffer | ArrayBufferView, bufferByteOffset: number, dataOffset: number, dataLength: number, options: SetDataOptions): void;
|
|
90
|
-
/**
|
|
91
|
-
* Get buffer data.
|
|
92
|
-
* @param data - Output buffer data
|
|
93
|
-
*/
|
|
94
|
-
getData(data: ArrayBufferView): void;
|
|
95
|
-
/**
|
|
96
|
-
* Get buffer data.
|
|
97
|
-
* @param data - Output buffer data
|
|
98
|
-
* @param bufferByteOffset - Buffer byte offset
|
|
99
|
-
*/
|
|
100
|
-
getData(data: ArrayBufferView, bufferByteOffset: number): void;
|
|
101
|
-
/**
|
|
102
|
-
* Get buffer data.
|
|
103
|
-
* @param data - Output buffer data
|
|
104
|
-
* @param bufferByteOffset - Buffer byte offset
|
|
105
|
-
* @param dataOffset - Output data offset
|
|
106
|
-
* @param dataLength - Output data length
|
|
107
|
-
*/
|
|
108
|
-
getData(data: ArrayBufferView, bufferByteOffset: number, dataOffset: number, dataLength: number): void;
|
|
109
|
-
/**
|
|
110
|
-
* Mark buffer as readable, the `data` property will be not accessible anymore.
|
|
111
|
-
*/
|
|
112
|
-
markAsUnreadable(): void;
|
|
113
|
-
_rebuild(): void;
|
|
114
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DataType } from "../base/Constant";
|
|
2
|
-
import { IndexFormat } from "./enums/IndexFormat";
|
|
3
|
-
export interface ElementInfo {
|
|
4
|
-
size: number;
|
|
5
|
-
type: DataType;
|
|
6
|
-
normalized: boolean;
|
|
7
|
-
normalizedScaleFactor: number;
|
|
8
|
-
}
|
|
9
|
-
export declare class BufferUtil {
|
|
10
|
-
static _getGLIndexType(indexFormat: IndexFormat): DataType;
|
|
11
|
-
static _getGLIndexByteCount(indexFormat: IndexFormat): number;
|
|
12
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IndexFormat } from "./enums/IndexFormat";
|
|
2
|
-
import { Buffer } from "./Buffer";
|
|
3
|
-
/**
|
|
4
|
-
* Index buffer binding.
|
|
5
|
-
*/
|
|
6
|
-
export declare class IndexBufferBinding {
|
|
7
|
-
/**
|
|
8
|
-
* Index buffer.
|
|
9
|
-
*/
|
|
10
|
-
get buffer(): Buffer;
|
|
11
|
-
/**
|
|
12
|
-
* Index buffer format.
|
|
13
|
-
*/
|
|
14
|
-
get format(): IndexFormat;
|
|
15
|
-
/**
|
|
16
|
-
* Create index buffer binding.
|
|
17
|
-
* @param buffer - Index buffer
|
|
18
|
-
* @param format - Index buffer format
|
|
19
|
-
*/
|
|
20
|
-
constructor(buffer: Buffer, format: IndexFormat);
|
|
21
|
-
}
|
package/types/graphic/Mesh.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { BoundingBox } from "@galacean/engine-math";
|
|
2
|
-
import { Engine } from "../Engine";
|
|
3
|
-
import { ReferResource } from "../asset/ReferResource";
|
|
4
|
-
import { SubMesh } from "../graphic/SubMesh";
|
|
5
|
-
import { MeshTopology } from "../graphic/enums/MeshTopology";
|
|
6
|
-
/**
|
|
7
|
-
* Mesh.
|
|
8
|
-
*/
|
|
9
|
-
export declare abstract class Mesh extends ReferResource {
|
|
10
|
-
/** Name. */
|
|
11
|
-
name: string;
|
|
12
|
-
private _bounds;
|
|
13
|
-
private _subMeshes;
|
|
14
|
-
/**
|
|
15
|
-
* The bounding volume of the mesh.
|
|
16
|
-
*/
|
|
17
|
-
get bounds(): BoundingBox;
|
|
18
|
-
set bounds(value: BoundingBox);
|
|
19
|
-
/**
|
|
20
|
-
* First sub-mesh. Rendered using the first material.
|
|
21
|
-
*/
|
|
22
|
-
get subMesh(): SubMesh | null;
|
|
23
|
-
/**
|
|
24
|
-
* A collection of sub-mesh, each sub-mesh can be rendered with an independent material.
|
|
25
|
-
*/
|
|
26
|
-
get subMeshes(): Readonly<SubMesh[]>;
|
|
27
|
-
/**
|
|
28
|
-
* Create mesh.
|
|
29
|
-
* @param engine - Engine
|
|
30
|
-
* @param name - Mesh name
|
|
31
|
-
*/
|
|
32
|
-
constructor(engine: Engine, name?: string);
|
|
33
|
-
/**
|
|
34
|
-
* Add sub-mesh, each sub-mesh can correspond to an independent material.
|
|
35
|
-
* @param subMesh - Start drawing offset, if the index buffer is set, it means the offset in the index buffer, if not set, it means the offset in the vertex buffer
|
|
36
|
-
* @returns Sub-mesh
|
|
37
|
-
*/
|
|
38
|
-
addSubMesh(subMesh: SubMesh): SubMesh;
|
|
39
|
-
/**
|
|
40
|
-
* Add sub-mesh, each sub-mesh can correspond to an independent material.
|
|
41
|
-
* @param start - Start drawing offset, if the index buffer is set, it means the offset in the index buffer, if not set, it means the offset in the vertex buffer
|
|
42
|
-
* @param count - Drawing count, if the index buffer is set, it means the count in the index buffer, if not set, it means the count in the vertex buffer
|
|
43
|
-
* @param topology - Drawing topology, default is MeshTopology.Triangles
|
|
44
|
-
* @returns Sub-mesh
|
|
45
|
-
*/
|
|
46
|
-
addSubMesh(start: number, count: number, topology?: MeshTopology): SubMesh;
|
|
47
|
-
/**
|
|
48
|
-
* Remove sub-mesh.
|
|
49
|
-
* @param subMesh - Sub-mesh needs to be removed
|
|
50
|
-
*/
|
|
51
|
-
removeSubMesh(subMesh: SubMesh): void;
|
|
52
|
-
/**
|
|
53
|
-
* Clear all sub-mesh.
|
|
54
|
-
*/
|
|
55
|
-
clearSubMesh(): void;
|
|
56
|
-
_addReferCount(value: number): void;
|
|
57
|
-
private _onBoundsChanged;
|
|
58
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MeshTopology } from "./enums/MeshTopology";
|
|
2
|
-
/**
|
|
3
|
-
* Sub-primitive, mainly contains drawing information.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SubPrimitive {
|
|
6
|
-
/** Start drawing offset. */
|
|
7
|
-
start: number;
|
|
8
|
-
/** Drawing count. */
|
|
9
|
-
count: number;
|
|
10
|
-
/** Drawing topology. */
|
|
11
|
-
topology: MeshTopology;
|
|
12
|
-
/**
|
|
13
|
-
* Create a sub-primitive.
|
|
14
|
-
* @param start - Start drawing offset
|
|
15
|
-
* @param count - Drawing count
|
|
16
|
-
* @param topology - Drawing topology
|
|
17
|
-
*/
|
|
18
|
-
constructor(start?: number, count?: number, topology?: MeshTopology);
|
|
19
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Buffer } from "./Buffer";
|
|
2
|
-
/**
|
|
3
|
-
* Vertex buffer binding.
|
|
4
|
-
*/
|
|
5
|
-
export declare class VertexBufferBinding {
|
|
6
|
-
/**
|
|
7
|
-
* Vertex buffer.
|
|
8
|
-
*/
|
|
9
|
-
get buffer(): Buffer;
|
|
10
|
-
/**
|
|
11
|
-
* Vertex buffer stride.
|
|
12
|
-
*/
|
|
13
|
-
get stride(): number;
|
|
14
|
-
/**
|
|
15
|
-
* Create vertex buffer.
|
|
16
|
-
* @param buffer - Vertex buffer
|
|
17
|
-
* @param stride - Vertex buffer stride
|
|
18
|
-
*/
|
|
19
|
-
constructor(buffer: Buffer, stride: number);
|
|
20
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ElementInfo } from "./BufferUtil";
|
|
2
|
-
import { VertexElementFormat } from "./enums/VertexElementFormat";
|
|
3
|
-
/**
|
|
4
|
-
* Vertex element.
|
|
5
|
-
*/
|
|
6
|
-
export declare class VertexElement {
|
|
7
|
-
_formatMetaInfo: ElementInfo;
|
|
8
|
-
private _attributeName;
|
|
9
|
-
private _offset;
|
|
10
|
-
private _format;
|
|
11
|
-
private _bindingIndex;
|
|
12
|
-
private _instanceStepRate;
|
|
13
|
-
/**
|
|
14
|
-
* Vertex attribute.
|
|
15
|
-
*/
|
|
16
|
-
get attribute(): string;
|
|
17
|
-
/**
|
|
18
|
-
* Vertex data byte offset.
|
|
19
|
-
*/
|
|
20
|
-
get offset(): number;
|
|
21
|
-
set offset(value: number);
|
|
22
|
-
/**
|
|
23
|
-
* Vertex data format.
|
|
24
|
-
*/
|
|
25
|
-
get format(): VertexElementFormat;
|
|
26
|
-
/**
|
|
27
|
-
* Vertex buffer binding index.
|
|
28
|
-
*/
|
|
29
|
-
get bindingIndex(): number;
|
|
30
|
-
set bindingIndex(value: number);
|
|
31
|
-
/**
|
|
32
|
-
* Instance cadence, the number of instances drawn for each vertex in the buffer, non-instance elements must be 0.
|
|
33
|
-
*/
|
|
34
|
-
get instanceStepRate(): number;
|
|
35
|
-
/**
|
|
36
|
-
* Create vertex element.
|
|
37
|
-
* @param attribute - Input attribute
|
|
38
|
-
* @param offset - Vertex data byte offset
|
|
39
|
-
* @param format - Vertex data format
|
|
40
|
-
* @param bindingIndex - Vertex buffer binding index
|
|
41
|
-
* @param instanceStepRate - Instance cadence, the number of instances drawn for each vertex in the buffer, non-instance elements must be 0.
|
|
42
|
-
*/
|
|
43
|
-
constructor(attribute: string, offset: number, format: VertexElementFormat, bindingIndex: number, instanceStepRate?: number);
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated use `attributeName` instead
|
|
46
|
-
*/
|
|
47
|
-
get semantic(): string;
|
|
48
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Buffer usage.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum BufferUsage {
|
|
5
|
-
/** The buffer content are intended to be specified once, and used many times */
|
|
6
|
-
Static = 0,
|
|
7
|
-
/** The buffer contents are intended to be respecified repeatedly, and used many times */
|
|
8
|
-
Dynamic = 1,
|
|
9
|
-
/** The buffer contents are intended to be specified once, and used at most a few times */
|
|
10
|
-
Stream = 2
|
|
11
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mesh topology.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum MeshTopology {
|
|
5
|
-
/** Draws a single dot */
|
|
6
|
-
Points = 0,
|
|
7
|
-
/** Draws a line between a pair of vertices */
|
|
8
|
-
Lines = 1,
|
|
9
|
-
/** Draws a straight line to the next vertex, and connects the last vertex back to the first */
|
|
10
|
-
LineLoop = 2,
|
|
11
|
-
/** Draws a straight line to the next vertex. */
|
|
12
|
-
LineStrip = 3,
|
|
13
|
-
/** Draws a triangle for a group of three vertices */
|
|
14
|
-
Triangles = 4,
|
|
15
|
-
/** Draws a triangle strip */
|
|
16
|
-
TriangleStrip = 5,
|
|
17
|
-
/** Draws a triangle fan */
|
|
18
|
-
TriangleFan = 6
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Define update strategy when call bufferData/bufferSubData func.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum SetDataOptions {
|
|
5
|
-
/** Can overwrite part of used buffer data and ensure correct rendering */
|
|
6
|
-
None = 0,
|
|
7
|
-
/** Discard old buffer and create a new buffer, and won't affect the previous rendering */
|
|
8
|
-
Discard = 1
|
|
9
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vertex element format.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum VertexElementFormat {
|
|
5
|
-
/** 32-bit float */
|
|
6
|
-
Float = 0,
|
|
7
|
-
/** Two-dimensional 32-bit float */
|
|
8
|
-
Vector2 = 1,
|
|
9
|
-
/** Three-dimensional 32-bit float */
|
|
10
|
-
Vector3 = 2,
|
|
11
|
-
/** Four-dimensional 32-bit float */
|
|
12
|
-
Vector4 = 3,
|
|
13
|
-
/** Four-dimensional 8-bit integer,range is [-128,127] */
|
|
14
|
-
Byte4 = 4,
|
|
15
|
-
/** Four-dimensional 8-bit Unsigned integer, range is [0,255] */
|
|
16
|
-
UByte4 = 5,
|
|
17
|
-
/** Four-dimensional 8-bit Normalized integer, range is [-1,1] */
|
|
18
|
-
NormalizedByte4 = 6,
|
|
19
|
-
/** Four-dimensional 8-bit Normalized unsigned integer, range is [0,1] */
|
|
20
|
-
NormalizedUByte4 = 7,
|
|
21
|
-
/** Two-dimensional 16-bit integer, range is[-32768, 32767] */
|
|
22
|
-
Short2 = 8,
|
|
23
|
-
/** Two-dimensional 16-bit Unsigned integer, range is [0, 65535] */
|
|
24
|
-
UShort2 = 9,
|
|
25
|
-
/** Two-dimensional 16-bit Unsigned integer, range is [-1, 1] */
|
|
26
|
-
NormalizedShort2 = 10,
|
|
27
|
-
/** Two-dimensional 16-bit Normalized unsigned integer, range is [0, 1] */
|
|
28
|
-
NormalizedUShort2 = 11,
|
|
29
|
-
/** Four-dimensional 16-bit integer, range is [-32768, 32767] */
|
|
30
|
-
Short4 = 12,
|
|
31
|
-
/** Four-dimensional 16-bit Unsigned integer, range is [0, 65535] */
|
|
32
|
-
UShort4 = 13,
|
|
33
|
-
/** Four-dimensional 16-bit Normalized integer, range is[-1, 1] */
|
|
34
|
-
NormalizedShort4 = 14,
|
|
35
|
-
/** Four-dimensional 16-bit Normalized unsigned integer, range is [0, 1] */
|
|
36
|
-
NormalizedUShort4 = 15
|
|
37
|
-
}
|
package/types/graphic/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { Buffer } from "./Buffer";
|
|
2
|
-
export { BufferUtil } from "./BufferUtil";
|
|
3
|
-
export { BufferBindFlag } from "./enums/BufferBindFlag";
|
|
4
|
-
export { BufferUsage } from "./enums/BufferUsage";
|
|
5
|
-
export { IndexFormat } from "./enums/IndexFormat";
|
|
6
|
-
export { MeshTopology } from "./enums/MeshTopology";
|
|
7
|
-
export { SetDataOptions } from "./enums/SetDataOptions";
|
|
8
|
-
export { VertexElementFormat } from "./enums/VertexElementFormat";
|
|
9
|
-
export { IndexBufferBinding } from "./IndexBufferBinding";
|
|
10
|
-
export { Mesh } from "./Mesh";
|
|
11
|
-
export { SubMesh } from "./SubMesh";
|
|
12
|
-
export { VertexBufferBinding } from "./VertexBufferBinding";
|
|
13
|
-
export { VertexElement } from "./VertexElement";
|
|
14
|
-
export { Primitive } from "./Primitive";
|
|
15
|
-
export { SubPrimitive } from "./SubPrimitive";
|
package/types/index.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export { Platform } from "./Platform";
|
|
2
|
-
export { Engine } from "./Engine";
|
|
3
|
-
export { SystemInfo } from "./SystemInfo";
|
|
4
|
-
export { Canvas } from "./Canvas";
|
|
5
|
-
export { DisorderedArray } from "./utils/DisorderedArray";
|
|
6
|
-
export { Scene } from "./Scene";
|
|
7
|
-
export { SceneManager } from "./SceneManager";
|
|
8
|
-
export { Entity } from "./Entity";
|
|
9
|
-
export { Component } from "./Component";
|
|
10
|
-
export { Script } from "./Script";
|
|
11
|
-
export { Renderer, RendererUpdateFlags } from "./Renderer";
|
|
12
|
-
export { dependentComponents, DependentMode } from "./ComponentsDependencies";
|
|
13
|
-
export { Camera } from "./Camera";
|
|
14
|
-
export { Transform, TransformModifyFlags } from "./Transform";
|
|
15
|
-
export { BoolUpdateFlag } from "./BoolUpdateFlag";
|
|
16
|
-
export type { EngineSettings } from "./EngineSettings";
|
|
17
|
-
export type { EngineConfiguration } from "./Engine";
|
|
18
|
-
export { request } from "./asset/request";
|
|
19
|
-
export type { RequestConfig } from "./asset/request";
|
|
20
|
-
export { Loader } from "./asset/Loader";
|
|
21
|
-
export { ContentRestorer } from "./asset/ContentRestorer";
|
|
22
|
-
export { ResourceManager, resourceLoader } from "./asset/ResourceManager";
|
|
23
|
-
export { AssetPromise } from "./asset/AssetPromise";
|
|
24
|
-
export type { LoadItem } from "./asset/LoadItem";
|
|
25
|
-
export { AssetType } from "./asset/AssetType";
|
|
26
|
-
export { ReferResource } from "./asset/ReferResource";
|
|
27
|
-
export * from "./RenderPipeline/index";
|
|
28
|
-
export * from "./base";
|
|
29
|
-
export { Background } from "./Background";
|
|
30
|
-
export { BackgroundMode } from "./enums/BackgroundMode";
|
|
31
|
-
export { DepthTextureMode } from "./enums/DepthTextureMode";
|
|
32
|
-
export { FogMode } from "./enums/FogMode";
|
|
33
|
-
export { CameraClearFlags } from "./enums/CameraClearFlags";
|
|
34
|
-
export { CameraType } from "./enums/CameraType";
|
|
35
|
-
export { CameraModifyFlags } from "./enums/CameraModifyFlags";
|
|
36
|
-
export { EntityModifyFlags } from "./enums/EntityModifyFlags";
|
|
37
|
-
export { MSAASamples } from "./enums/MSAASamples";
|
|
38
|
-
export { ReplacementFailureStrategy } from "./enums/ReplacementFailureStrategy";
|
|
39
|
-
export { Downsampling } from "./enums/Downsampling";
|
|
40
|
-
export { BackgroundTextureFillMode } from "./enums/BackgroundTextureFillMode";
|
|
41
|
-
export { SpriteMaskLayer } from "./enums/SpriteMaskLayer";
|
|
42
|
-
export { XRManager } from "./xr/XRManager";
|
|
43
|
-
export * from "./utils/index";
|
|
44
|
-
export * from "./input/index";
|
|
45
|
-
export * from "./lighting/index";
|
|
46
|
-
export * from "./shadow/index";
|
|
47
|
-
export * from "./material/index";
|
|
48
|
-
export * from "./texture/index";
|
|
49
|
-
export * from "./graphic/index";
|
|
50
|
-
export * from "./2d/index";
|
|
51
|
-
export * from "./shaderlib/index";
|
|
52
|
-
export * from "./animation/index";
|
|
53
|
-
export * from "./mesh/index";
|
|
54
|
-
export * from "./sky/index";
|
|
55
|
-
export * from "./particle/index";
|
|
56
|
-
export * from "./trail/index";
|
|
57
|
-
export * from "./env-probe/index";
|
|
58
|
-
export * from "./shader/index";
|
|
59
|
-
export * from "./Layer";
|
|
60
|
-
export * from "./clone/CloneManager";
|
|
61
|
-
export * from "./renderingHardwareInterface/index";
|
|
62
|
-
export * from "./physics/index";
|
|
63
|
-
export * from "./Utils";
|
|
64
|
-
export * from "./audio/index";
|
|
65
|
-
export { ShaderMacroCollection } from "./shader/ShaderMacroCollection";
|
|
66
|
-
export * from "./postProcess";
|
|
67
|
-
export { AntiAliasing } from "./enums/AntiAliasing";
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Vector3 } from "@galacean/engine-math";
|
|
2
|
-
import { Keys } from "./enums/Keys";
|
|
3
|
-
import { PointerButton } from "./enums/PointerButton";
|
|
4
|
-
import { Pointer } from "./pointer/Pointer";
|
|
5
|
-
/**
|
|
6
|
-
* InputManager manages device input such as mouse, touch, keyboard, etc.
|
|
7
|
-
*/
|
|
8
|
-
export declare class InputManager {
|
|
9
|
-
private _engine;
|
|
10
|
-
/** Sometimes the input module will not be initialized, such as off-screen rendering. */
|
|
11
|
-
private _initialized;
|
|
12
|
-
private _wheelManager;
|
|
13
|
-
private _pointerManager;
|
|
14
|
-
private _keyboardManager;
|
|
15
|
-
/**
|
|
16
|
-
* Pointer list.
|
|
17
|
-
*/
|
|
18
|
-
get pointers(): Readonly<Pointer[]>;
|
|
19
|
-
/**
|
|
20
|
-
* Whether to handle multi-pointer.
|
|
21
|
-
*/
|
|
22
|
-
get multiPointerEnabled(): boolean;
|
|
23
|
-
set multiPointerEnabled(enabled: boolean);
|
|
24
|
-
/**
|
|
25
|
-
* Get the change of the scroll wheel on the x-axis.
|
|
26
|
-
* @returns Change value
|
|
27
|
-
*/
|
|
28
|
-
get wheelDelta(): Readonly<Vector3 | null>;
|
|
29
|
-
/**
|
|
30
|
-
* Whether the key is being held down, if there is no parameter, return whether any key is being held down.
|
|
31
|
-
* @param key - The keys of the keyboard
|
|
32
|
-
* @returns Whether the key is being held down
|
|
33
|
-
*/
|
|
34
|
-
isKeyHeldDown(key?: Keys): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Whether the key starts to be pressed down during the current frame, if there is no parameter, return whether any key starts to be pressed down during the current frame.
|
|
37
|
-
* @param key - The keys of the keyboard
|
|
38
|
-
* @returns Whether the key starts to be pressed down during the current frame
|
|
39
|
-
*/
|
|
40
|
-
isKeyDown(key?: Keys): boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Whether the key is released during the current frame, if there is no parameter, return whether any key released during the current frame.
|
|
43
|
-
* @param key - The keys of the keyboard
|
|
44
|
-
* @returns Whether the key is released during the current frame
|
|
45
|
-
*/
|
|
46
|
-
isKeyUp(key?: Keys): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Whether the pointer is being held down, if there is no parameter, return whether any pointer is being held down.
|
|
49
|
-
* @param pointerButton - The pointerButton on a pointer device
|
|
50
|
-
* @returns Whether the pointer is being held down
|
|
51
|
-
*/
|
|
52
|
-
isPointerHeldDown(pointerButton?: PointerButton): boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Whether the pointer starts to be pressed down during the current frame, if there is no parameter, return whether any pointer starts to be pressed down during the current frame.
|
|
55
|
-
* @param pointerButton - The pointerButton on a pointer device
|
|
56
|
-
* @returns Whether the pointer starts to be pressed down during the current frame
|
|
57
|
-
*/
|
|
58
|
-
isPointerDown(pointerButton?: PointerButton): boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Whether the pointer is released during the current frame, if there is no parameter, return whether any pointer released during the current frame.
|
|
61
|
-
* @param pointerButton - The pointerButtons on a mouse device
|
|
62
|
-
* @returns Whether the pointer is released during the current frame
|
|
63
|
-
*/
|
|
64
|
-
isPointerUp(pointerButton?: PointerButton): boolean;
|
|
65
|
-
}
|