@galacean/engine-core 0.0.0-experimental-animator-additive.1
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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/main.js +24671 -0
- package/dist/main.js.map +1 -0
- package/dist/miniprogram.js +24671 -0
- package/dist/module.js +24554 -0
- package/dist/module.js.map +1 -0
- package/package.json +26 -0
- package/types/2d/assembler/IAssembler.d.ts +1 -0
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +1 -0
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +1 -0
- package/types/2d/atlas/FontAtlas.d.ts +1 -0
- package/types/2d/atlas/SpriteAtlas.d.ts +36 -0
- package/types/2d/atlas/types.d.ts +64 -0
- package/types/2d/data/RenderData2D.d.ts +1 -0
- package/types/2d/data/VertexData2D.d.ts +1 -0
- package/types/2d/enums/FontStyle.d.ts +11 -0
- package/types/2d/enums/SpriteDirtyFlag.d.ts +13 -0
- package/types/2d/enums/SpriteDrawMode.d.ts +9 -0
- package/types/2d/enums/SpriteMaskInteraction.d.ts +11 -0
- package/types/2d/enums/SpriteMaskLayer.d.ts +71 -0
- package/types/2d/enums/SpriteModifyFlags.d.ts +13 -0
- package/types/2d/enums/TextAlignment.d.ts +22 -0
- package/types/2d/enums/TextOverflow.d.ts +9 -0
- package/types/2d/index.d.ts +9 -0
- package/types/2d/sprite/Sprite.d.ts +97 -0
- package/types/2d/sprite/SpriteMask.d.ts +63 -0
- package/types/2d/sprite/SpriteRenderer.d.ts +77 -0
- package/types/2d/sprite/index.d.ts +3 -0
- package/types/2d/text/CharInfo.d.ts +1 -0
- package/types/2d/text/CharRenderData.d.ts +1 -0
- package/types/2d/text/CharRenderDataPool.d.ts +1 -0
- package/types/2d/text/Font.d.ts +26 -0
- package/types/2d/text/SubFont.d.ts +1 -0
- package/types/2d/text/TextRenderer.d.ts +123 -0
- package/types/2d/text/TextUtils.d.ts +1 -0
- package/types/2d/text/index.d.ts +2 -0
- package/types/Background.d.ts +43 -0
- package/types/BoolUpdateFlag.d.ts +12 -0
- package/types/Camera.d.ts +206 -0
- package/types/Canvas.d.ts +9 -0
- package/types/Component.d.ts +32 -0
- package/types/ComponentsDependencies.d.ts +17 -0
- package/types/ComponentsManager.d.ts +46 -0
- package/types/DisorderedArray.d.ts +18 -0
- package/types/Engine.d.ts +140 -0
- package/types/EngineSettings.d.ts +8 -0
- package/types/Entity.d.ts +151 -0
- package/types/Layer.d.ts +73 -0
- package/types/ListenerUpdateFlag.d.ts +12 -0
- package/types/Platform.d.ts +15 -0
- package/types/RenderPipeline/Basic2DBatcher.d.ts +20 -0
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +66 -0
- package/types/RenderPipeline/ClassPool.d.ts +17 -0
- package/types/RenderPipeline/MeshRenderData.d.ts +15 -0
- package/types/RenderPipeline/MeshRenderElement.d.ts +17 -0
- package/types/RenderPipeline/RenderContext.d.ts +1 -0
- package/types/RenderPipeline/RenderData.d.ts +7 -0
- package/types/RenderPipeline/RenderElement.d.ts +11 -0
- package/types/RenderPipeline/RenderPass.d.ts +55 -0
- package/types/RenderPipeline/RenderQueue.d.ts +38 -0
- package/types/RenderPipeline/SpriteBatcher.d.ts +1 -0
- package/types/RenderPipeline/SpriteElement.d.ts +13 -0
- package/types/RenderPipeline/SpriteMaskBatcher.d.ts +10 -0
- package/types/RenderPipeline/SpriteMaskElement.d.ts +10 -0
- package/types/RenderPipeline/SpriteMaskManager.d.ts +1 -0
- package/types/RenderPipeline/SpriteMaskRenderData.d.ts +10 -0
- package/types/RenderPipeline/SpriteRenderData.d.ts +12 -0
- package/types/RenderPipeline/TextRenderData.d.ts +6 -0
- package/types/RenderPipeline/TextRenderElement.d.ts +6 -0
- package/types/RenderPipeline/enums/PipelineStage.d.ts +9 -0
- package/types/RenderPipeline/index.d.ts +4 -0
- package/types/Renderer.d.ts +119 -0
- package/types/Scene.d.ts +142 -0
- package/types/SceneManager.d.ts +28 -0
- package/types/Script.d.ts +118 -0
- package/types/SystemInfo.d.ts +14 -0
- package/types/Transform.d.ts +258 -0
- package/types/UpdateFlag.d.ts +20 -0
- package/types/UpdateFlagManager.d.ts +1 -0
- package/types/Utils.d.ts +3 -0
- package/types/VirtualCamera.d.ts +1 -0
- package/types/animation/AnimationClip.d.ts +58 -0
- package/types/animation/AnimationClipCurveBinding.d.ts +21 -0
- package/types/animation/AnimationEvent.d.ts +11 -0
- package/types/animation/Animator.d.ts +86 -0
- package/types/animation/AnimatorController.d.ts +32 -0
- package/types/animation/AnimatorControllerLayer.d.ts +18 -0
- package/types/animation/AnimatorState.d.ts +60 -0
- package/types/animation/AnimatorStateMachine.d.ts +37 -0
- package/types/animation/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/AnimatorStateTransition.d.ts +12 -0
- package/types/animation/AnimatorTransition.d.ts +14 -0
- package/types/animation/AnimatorTransitionBase.d.ts +10 -0
- package/types/animation/Keyframe.d.ts +19 -0
- package/types/animation/StateMachineScript.d.ts +32 -0
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +12 -0
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +8 -0
- package/types/animation/animationCurve/index.d.ts +10 -0
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +1 -0
- package/types/animation/enums/AnimatorConditionMode.d.ts +8 -0
- package/types/animation/enums/AnimatorCullingMode.d.ts +9 -0
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +4 -0
- package/types/animation/enums/AnimatorStatePlayState.d.ts +1 -0
- package/types/animation/enums/InterpolationType.d.ts +13 -0
- package/types/animation/enums/LayerState.d.ts +13 -0
- package/types/animation/enums/PlayState.d.ts +13 -0
- package/types/animation/enums/StateMachineState.d.ts +13 -0
- package/types/animation/enums/WrapMode.d.ts +9 -0
- package/types/animation/index.d.ts +21 -0
- package/types/animation/internal/AnimationEventHandler.d.ts +1 -0
- package/types/animation/internal/AnimatorLayerData.d.ts +1 -0
- package/types/animation/internal/AnimatorPlayableObject.d.ts +23 -0
- package/types/animation/internal/AnimatorStateData.d.ts +1 -0
- package/types/animation/internal/AnimatorStateInfo.d.ts +1 -0
- package/types/animation/internal/AnimatorStateMachineData.d.ts +1 -0
- package/types/animation/internal/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/internal/AnimatorTempValue.d.ts +1 -0
- package/types/animation/internal/CrossCurveData.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +5 -0
- package/types/animation/internal/animationCurveOwner/Assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/IAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/PositionAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/RotationAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/ScaleAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/UniversalAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/asset/AssetPromise.d.ts +56 -0
- package/types/asset/AssetType.d.ts +52 -0
- package/types/asset/ContentRestorer.d.ts +17 -0
- package/types/asset/GraphicsResource.d.ts +9 -0
- package/types/asset/IRefObject.d.ts +2 -0
- package/types/asset/IReferable.d.ts +2 -0
- package/types/asset/LoadItem.d.ts +33 -0
- package/types/asset/Loader.d.ts +30 -0
- package/types/asset/RefObject.d.ts +27 -0
- package/types/asset/ReferResource.d.ts +27 -0
- package/types/asset/ResourceManager.d.ts +101 -0
- package/types/asset/request.d.ts +25 -0
- package/types/base/Constant.d.ts +110 -0
- package/types/base/EngineObject.d.ts +24 -0
- package/types/base/Event.d.ts +24 -0
- package/types/base/EventDispatcher.d.ts +79 -0
- package/types/base/Logger.d.ts +11 -0
- package/types/base/StaticInterfaceImplement.d.ts +5 -0
- package/types/base/Time.d.ts +41 -0
- package/types/base/Util.d.ts +14 -0
- package/types/base/index.d.ts +7 -0
- package/types/clone/CloneManager.d.ts +31 -0
- package/types/clone/ComponentCloner.d.ts +14 -0
- package/types/clone/enums/CloneMode.d.ts +13 -0
- package/types/enums/BackgroundMode.d.ts +9 -0
- package/types/enums/BackgroundTextureFillMode.d.ts +8 -0
- package/types/enums/CameraClearFlags.d.ts +13 -0
- package/types/enums/ColorSpace.d.ts +9 -0
- package/types/enums/FogMode.d.ts +13 -0
- package/types/env-probe/CubeProbe.d.ts +34 -0
- package/types/env-probe/Probe.d.ts +58 -0
- package/types/env-probe/index.d.ts +2 -0
- package/types/fog/EXP2Fog.d.ts +15 -0
- package/types/fog/Fog.d.ts +14 -0
- package/types/fog/LinearFog.d.ts +22 -0
- package/types/fog/index.d.ts +3 -0
- package/types/graphic/Buffer.d.ts +105 -0
- package/types/graphic/BufferUtil.d.ts +11 -0
- package/types/graphic/IndexBufferBinding.d.ts +21 -0
- package/types/graphic/Mesh.d.ts +70 -0
- package/types/graphic/SubMesh.d.ts +19 -0
- package/types/graphic/VertexBufferBinding.d.ts +20 -0
- package/types/graphic/VertexElement.d.ts +44 -0
- package/types/graphic/enums/BufferBindFlag.d.ts +9 -0
- package/types/graphic/enums/BufferUsage.d.ts +11 -0
- package/types/graphic/enums/IndexFormat.d.ts +11 -0
- package/types/graphic/enums/MeshTopology.d.ts +19 -0
- package/types/graphic/enums/SetDataOptions.d.ts +9 -0
- package/types/graphic/enums/VertexElementFormat.d.ts +37 -0
- package/types/graphic/index.d.ts +13 -0
- package/types/index.d.ts +53 -0
- package/types/input/InputManager.d.ts +67 -0
- package/types/input/enums/Keys.d.ts +398 -0
- package/types/input/enums/PointerButton.d.ts +33 -0
- package/types/input/enums/PointerPhase.d.ts +15 -0
- package/types/input/index.d.ts +5 -0
- package/types/input/interface/IInput.d.ts +18 -0
- package/types/input/keyboard/KeyboardManager.d.ts +1 -0
- package/types/input/pointer/Pointer.d.ts +25 -0
- package/types/input/pointer/PointerManager.d.ts +1 -0
- package/types/input/wheel/WheelManager.d.ts +1 -0
- package/types/lighting/AmbientLight.d.ts +67 -0
- package/types/lighting/DirectLight.d.ts +21 -0
- package/types/lighting/KHR_lights.d.ts +4 -0
- package/types/lighting/Light.d.ts +48 -0
- package/types/lighting/LightManager.d.ts +5 -0
- package/types/lighting/PointLight.d.ts +18 -0
- package/types/lighting/SpotLight.d.ts +36 -0
- package/types/lighting/enums/DiffuseMode.d.ts +13 -0
- package/types/lighting/index.d.ts +6 -0
- package/types/material/BaseMaterial.d.ts +88 -0
- package/types/material/BlinnPhongMaterial.d.ts +71 -0
- package/types/material/Material.d.ts +51 -0
- package/types/material/PBRBaseMaterial.d.ts +101 -0
- package/types/material/PBRMaterial.d.ts +36 -0
- package/types/material/PBRSpecularMaterial.d.ts +38 -0
- package/types/material/UnlitMaterial.d.ts +33 -0
- package/types/material/enums/BlendMode.d.ts +9 -0
- package/types/material/enums/RenderFace.d.ts +11 -0
- package/types/material/enums/TextureCoordinate.d.ts +13 -0
- package/types/material/index.d.ts +10 -0
- package/types/mesh/BlendShape.d.ts +39 -0
- package/types/mesh/BlendShapeFrame.d.ts +22 -0
- package/types/mesh/BlendShapeManager.d.ts +1 -0
- package/types/mesh/BufferMesh.d.ts +59 -0
- package/types/mesh/MeshRenderer.d.ts +30 -0
- package/types/mesh/ModelMesh.d.ts +226 -0
- package/types/mesh/PrimitiveMesh.d.ts +86 -0
- package/types/mesh/PrimitiveMeshRestorer.d.ts +1 -0
- package/types/mesh/Skin.d.ts +16 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +62 -0
- package/types/mesh/enums/VertexAttribute.d.ts +33 -0
- package/types/mesh/index.d.ts +8 -0
- package/types/particle/ParticleRenderer.d.ts +235 -0
- package/types/particle/index.d.ts +1 -0
- package/types/physics/CharacterController.d.ts +53 -0
- package/types/physics/Collider.d.ts +29 -0
- package/types/physics/DynamicCollider.d.ts +161 -0
- package/types/physics/HitResult.d.ts +15 -0
- package/types/physics/PhysicsManager.d.ts +95 -0
- package/types/physics/PhysicsMaterial.d.ts +37 -0
- package/types/physics/StaticCollider.d.ts +7 -0
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +11 -0
- package/types/physics/enums/ControllerCollisionFlag.d.ts +11 -0
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +9 -0
- package/types/physics/enums/HingeJointFlag.d.ts +1 -0
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +13 -0
- package/types/physics/enums/index.d.ts +4 -0
- package/types/physics/index.d.ts +10 -0
- package/types/physics/joint/FixedJoint.d.ts +3 -0
- package/types/physics/joint/HingeJoint.d.ts +57 -0
- package/types/physics/joint/Joint.d.ts +58 -0
- package/types/physics/joint/JointLimits.d.ts +15 -0
- package/types/physics/joint/JointMotor.d.ts +13 -0
- package/types/physics/joint/SpringJoint.d.ts +42 -0
- package/types/physics/joint/index.d.ts +6 -0
- package/types/physics/shape/BoxColliderShape.d.ts +15 -0
- package/types/physics/shape/CapsuleColliderShape.d.ts +26 -0
- package/types/physics/shape/ColliderShape.d.ts +51 -0
- package/types/physics/shape/PlaneColliderShape.d.ts +7 -0
- package/types/physics/shape/SphereColliderShape.d.ts +13 -0
- package/types/physics/shape/index.d.ts +5 -0
- package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +6 -0
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +8 -0
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +20 -0
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +36 -0
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +37 -0
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +40 -0
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +41 -0
- package/types/renderingHardwareInterface/index.d.ts +6 -0
- package/types/shader/Shader.d.ts +72 -0
- package/types/shader/ShaderData.d.ts +350 -0
- package/types/shader/ShaderMacro.d.ts +10 -0
- package/types/shader/ShaderMacroCollection.d.ts +1 -0
- package/types/shader/ShaderPart.d.ts +41 -0
- package/types/shader/ShaderPass.d.ts +9 -0
- package/types/shader/ShaderPool.d.ts +1 -0
- package/types/shader/ShaderProgram.d.ts +1 -0
- package/types/shader/ShaderProgramPool.d.ts +1 -0
- package/types/shader/ShaderProperty.d.ts +13 -0
- package/types/shader/ShaderTagKey.d.ts +16 -0
- package/types/shader/ShaderUniform.d.ts +1 -0
- package/types/shader/ShaderUniformBlock.d.ts +1 -0
- package/types/shader/SubShader.d.ts +19 -0
- package/types/shader/enums/BlendFactor.d.ts +32 -0
- package/types/shader/enums/BlendOperation.d.ts +16 -0
- package/types/shader/enums/ColorWriteMask.d.ts +18 -0
- package/types/shader/enums/CompareFunction.d.ts +22 -0
- package/types/shader/enums/CullMode.d.ts +12 -0
- package/types/shader/enums/RenderQueueType.d.ts +11 -0
- package/types/shader/enums/ShaderDataGroup.d.ts +13 -0
- package/types/shader/enums/ShaderPropertyType.d.ts +27 -0
- package/types/shader/enums/StencilOperation.d.ts +22 -0
- package/types/shader/index.d.ts +12 -0
- package/types/shader/state/BlendState.d.ts +16 -0
- package/types/shader/state/DepthState.d.ts +14 -0
- package/types/shader/state/RasterState.d.ts +13 -0
- package/types/shader/state/RenderState.d.ts +20 -0
- package/types/shader/state/RenderTargetBlendState.d.ts +24 -0
- package/types/shader/state/StencilState.d.ts +34 -0
- package/types/shaderlib/ShaderFactory.d.ts +17 -0
- package/types/shaderlib/ShaderLib.d.ts +57 -0
- package/types/shaderlib/index.d.ts +1 -0
- package/types/shaderlib/pbr/index.d.ts +9 -0
- package/types/shaderlib/shadow/index.d.ts +8 -0
- package/types/shadow/CascadedShadowCasterPass.d.ts +47 -0
- package/types/shadow/ShadowSliceData.d.ts +1 -0
- package/types/shadow/ShadowUtils.d.ts +1 -0
- package/types/shadow/enum/ShadowCascadesMode.d.ts +11 -0
- package/types/shadow/enum/ShadowMode.d.ts +13 -0
- package/types/shadow/enum/ShadowResolution.d.ts +13 -0
- package/types/shadow/enum/ShadowType.d.ts +13 -0
- package/types/shadow/index.d.ts +3 -0
- package/types/sky/Sky.d.ts +14 -0
- package/types/sky/SkyBoxMaterial.d.ts +25 -0
- package/types/sky/index.d.ts +2 -0
- package/types/texture/RenderTarget.d.ts +95 -0
- package/types/texture/Texture.d.ts +77 -0
- package/types/texture/Texture2D.d.ts +68 -0
- package/types/texture/Texture2DArray.d.ts +81 -0
- package/types/texture/TextureCube.d.ts +70 -0
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +21 -0
- package/types/texture/enums/TextureCubeFace.d.ts +17 -0
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +21 -0
- package/types/texture/enums/TextureFilterMode.d.ts +11 -0
- package/types/texture/enums/TextureFormat.d.ts +69 -0
- package/types/texture/enums/TextureWrapMode.d.ts +11 -0
- package/types/texture/index.d.ts +11 -0
- package/types/trail/TrailMaterial.d.ts +5 -0
- package/types/trail/TrailRenderer.d.ts +40 -0
- package/types/trail/index.d.ts +2 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Matrix } from "@galacean/engine-math";
|
|
2
|
+
import { EngineObject } from "./base";
|
|
3
|
+
import { Component } from "./Component";
|
|
4
|
+
import { Engine } from "./Engine";
|
|
5
|
+
import { Layer } from "./Layer";
|
|
6
|
+
import { Scene } from "./Scene";
|
|
7
|
+
import { Transform } from "./Transform";
|
|
8
|
+
/**
|
|
9
|
+
* Entity, be used as components container.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Entity extends EngineObject {
|
|
12
|
+
/** The name of entity. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** The layer the entity belongs to. */
|
|
15
|
+
layer: Layer;
|
|
16
|
+
/** Transform component. */
|
|
17
|
+
readonly transform: Transform;
|
|
18
|
+
private _parent;
|
|
19
|
+
private _activeChangedComponents;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to activate locally.
|
|
22
|
+
*/
|
|
23
|
+
get isActive(): boolean;
|
|
24
|
+
set isActive(value: boolean);
|
|
25
|
+
/**
|
|
26
|
+
* Whether it is active in the hierarchy.
|
|
27
|
+
*/
|
|
28
|
+
get isActiveInHierarchy(): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The parent entity.
|
|
31
|
+
*/
|
|
32
|
+
get parent(): Entity;
|
|
33
|
+
set parent(value: Entity);
|
|
34
|
+
/**
|
|
35
|
+
* The children entities
|
|
36
|
+
*/
|
|
37
|
+
get children(): Readonly<Entity[]>;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Please use `children.length` property instead.
|
|
40
|
+
* Number of the children entities
|
|
41
|
+
*/
|
|
42
|
+
get childCount(): number;
|
|
43
|
+
/**
|
|
44
|
+
* The scene the entity belongs to.
|
|
45
|
+
*/
|
|
46
|
+
get scene(): Scene;
|
|
47
|
+
/**
|
|
48
|
+
* The sibling index.
|
|
49
|
+
*/
|
|
50
|
+
get siblingIndex(): number;
|
|
51
|
+
set siblingIndex(value: number);
|
|
52
|
+
/**
|
|
53
|
+
* Create a entity.
|
|
54
|
+
* @param engine - The engine the entity belongs to
|
|
55
|
+
*/
|
|
56
|
+
constructor(engine: Engine, name?: string);
|
|
57
|
+
/**
|
|
58
|
+
* Add component based on the component type.
|
|
59
|
+
* @param type - The type of the component
|
|
60
|
+
* @returns The component which has been added
|
|
61
|
+
*/
|
|
62
|
+
addComponent<T extends Component>(type: new (entity: Entity) => T): T;
|
|
63
|
+
/**
|
|
64
|
+
* Get component which match the type.
|
|
65
|
+
* @param type - The type of the component
|
|
66
|
+
* @returns The first component which match type
|
|
67
|
+
*/
|
|
68
|
+
getComponent<T extends Component>(type: new (entity: Entity) => T): T;
|
|
69
|
+
/**
|
|
70
|
+
* Get components which match the type.
|
|
71
|
+
* @param type - The type of the component
|
|
72
|
+
* @param results - The components which match type
|
|
73
|
+
* @returns The components which match type
|
|
74
|
+
*/
|
|
75
|
+
getComponents<T extends Component>(type: new (entity: Entity) => T, results: T[]): T[];
|
|
76
|
+
/**
|
|
77
|
+
* Get the components which match the type of the entity and it's children.
|
|
78
|
+
* @param type - The component type
|
|
79
|
+
* @param results - The components collection
|
|
80
|
+
* @returns The components collection which match the type
|
|
81
|
+
*/
|
|
82
|
+
getComponentsIncludeChildren<T extends Component>(type: new (entity: Entity) => T, results: T[]): T[];
|
|
83
|
+
/**
|
|
84
|
+
* Add child entity.
|
|
85
|
+
* @param child - The child entity which want to be added
|
|
86
|
+
*/
|
|
87
|
+
addChild(child: Entity): void;
|
|
88
|
+
/**
|
|
89
|
+
* Add child entity at specified index.
|
|
90
|
+
* @param index - specified index
|
|
91
|
+
* @param child - The child entity which want to be added
|
|
92
|
+
*/
|
|
93
|
+
addChild(index: number, child: Entity): void;
|
|
94
|
+
/**
|
|
95
|
+
* Remove child entity.
|
|
96
|
+
* @param child - The child entity which want to be removed
|
|
97
|
+
*/
|
|
98
|
+
removeChild(child: Entity): void;
|
|
99
|
+
/**
|
|
100
|
+
* @deprecated Please use `children` property instead.
|
|
101
|
+
* Find child entity by index.
|
|
102
|
+
* @param index - The index of the child entity
|
|
103
|
+
* @returns The component which be found
|
|
104
|
+
*/
|
|
105
|
+
getChild(index: number): Entity;
|
|
106
|
+
/**
|
|
107
|
+
* Find entity by name.
|
|
108
|
+
* @param name - The name of the entity which want to be found
|
|
109
|
+
* @returns The component which be found
|
|
110
|
+
*/
|
|
111
|
+
findByName(name: string): Entity;
|
|
112
|
+
/**
|
|
113
|
+
* Find the entity by path.
|
|
114
|
+
* @param path - The path fo the entity eg: /entity
|
|
115
|
+
* @returns The component which be found
|
|
116
|
+
*/
|
|
117
|
+
findByPath(path: string): Entity;
|
|
118
|
+
/**
|
|
119
|
+
* Create child entity.
|
|
120
|
+
* @param name - The child entity's name
|
|
121
|
+
* @returns The child entity
|
|
122
|
+
*/
|
|
123
|
+
createChild(name?: string): Entity;
|
|
124
|
+
/**
|
|
125
|
+
* Clear children entities.
|
|
126
|
+
*/
|
|
127
|
+
clearChildren(): void;
|
|
128
|
+
/**
|
|
129
|
+
* Clone.
|
|
130
|
+
* @returns Cloned entity
|
|
131
|
+
*/
|
|
132
|
+
clone(): Entity;
|
|
133
|
+
/**
|
|
134
|
+
* Destroy self.
|
|
135
|
+
*/
|
|
136
|
+
destroy(): void;
|
|
137
|
+
private _addToChildrenList;
|
|
138
|
+
private _setParent;
|
|
139
|
+
private _getComponentsInChildren;
|
|
140
|
+
private _setActiveComponents;
|
|
141
|
+
private _setActiveInHierarchy;
|
|
142
|
+
private _setInActiveInHierarchy;
|
|
143
|
+
private _setTransformDirty;
|
|
144
|
+
private _setSiblingIndex;
|
|
145
|
+
private _invModelMatrix;
|
|
146
|
+
private _inverseWorldMatFlag;
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated
|
|
149
|
+
*/
|
|
150
|
+
getInvModelMatrix(): Matrix;
|
|
151
|
+
}
|
package/types/Layer.d.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layer, used for bit operations.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum Layer {
|
|
5
|
+
/** Layer 0. */
|
|
6
|
+
Layer0 = 1,
|
|
7
|
+
/** Layer 1. */
|
|
8
|
+
Layer1 = 2,
|
|
9
|
+
/** Layer 2. */
|
|
10
|
+
Layer2 = 4,
|
|
11
|
+
/** Layer 3. */
|
|
12
|
+
Layer3 = 8,
|
|
13
|
+
/** Layer 4. */
|
|
14
|
+
Layer4 = 16,
|
|
15
|
+
/** Layer 5. */
|
|
16
|
+
Layer5 = 32,
|
|
17
|
+
/** Layer 6. */
|
|
18
|
+
Layer6 = 64,
|
|
19
|
+
/** Layer 7. */
|
|
20
|
+
Layer7 = 128,
|
|
21
|
+
/** Layer 8. */
|
|
22
|
+
Layer8 = 256,
|
|
23
|
+
/** Layer 9. */
|
|
24
|
+
Layer9 = 512,
|
|
25
|
+
/** Layer 10. */
|
|
26
|
+
Layer10 = 1024,
|
|
27
|
+
/** Layer 11. */
|
|
28
|
+
Layer11 = 2048,
|
|
29
|
+
/** Layer 12. */
|
|
30
|
+
Layer12 = 4096,
|
|
31
|
+
/** Layer 13. */
|
|
32
|
+
Layer13 = 8192,
|
|
33
|
+
/** Layer 14. */
|
|
34
|
+
Layer14 = 16384,
|
|
35
|
+
/** Layer 15. */
|
|
36
|
+
Layer15 = 32768,
|
|
37
|
+
/** Layer 16. */
|
|
38
|
+
Layer16 = 65536,
|
|
39
|
+
/** Layer 17. */
|
|
40
|
+
Layer17 = 131072,
|
|
41
|
+
/** Layer 18. */
|
|
42
|
+
Layer18 = 262144,
|
|
43
|
+
/** Layer 19. */
|
|
44
|
+
Layer19 = 524288,
|
|
45
|
+
/** Layer 20. */
|
|
46
|
+
Layer20 = 1048576,
|
|
47
|
+
/** Layer 21. */
|
|
48
|
+
Layer21 = 2097152,
|
|
49
|
+
/** Layer 22. */
|
|
50
|
+
Layer22 = 4194304,
|
|
51
|
+
/** Layer 23. */
|
|
52
|
+
Layer23 = 8388608,
|
|
53
|
+
/** Layer 24. */
|
|
54
|
+
Layer24 = 16777216,
|
|
55
|
+
/** Layer 25. */
|
|
56
|
+
Layer25 = 33554432,
|
|
57
|
+
/** Layer 26. */
|
|
58
|
+
Layer26 = 67108864,
|
|
59
|
+
/** Layer 27. */
|
|
60
|
+
Layer27 = 134217728,
|
|
61
|
+
/** Layer 28. */
|
|
62
|
+
Layer28 = 268435456,
|
|
63
|
+
/** Layer 29. */
|
|
64
|
+
Layer29 = 536870912,
|
|
65
|
+
/** Layer 30. */
|
|
66
|
+
Layer30 = 1073741824,
|
|
67
|
+
/** Layer 31. */
|
|
68
|
+
Layer31 = 2147483648,
|
|
69
|
+
/** All layers. */
|
|
70
|
+
Everything = 4294967295,
|
|
71
|
+
/** None layer. */
|
|
72
|
+
Nothing = 0
|
|
73
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The platform (including operating system and hardware) is running on.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum Platform {
|
|
5
|
+
/** Android platform. */
|
|
6
|
+
Android = 0,
|
|
7
|
+
/** IPhone platform. */
|
|
8
|
+
IPhone = 1,
|
|
9
|
+
/** IPad platform. */
|
|
10
|
+
IPad = 2,
|
|
11
|
+
/** Mac platform. */
|
|
12
|
+
Mac = 3,
|
|
13
|
+
/** Unknown platform. */
|
|
14
|
+
Unknown = 4
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Camera } from "../Camera";
|
|
2
|
+
import { Engine } from "../Engine";
|
|
3
|
+
import { Material } from "../material";
|
|
4
|
+
import { SpriteElement } from "./SpriteElement";
|
|
5
|
+
import { SpriteMaskElement } from "./SpriteMaskElement";
|
|
6
|
+
import { TextRenderElement } from "./TextRenderElement";
|
|
7
|
+
export declare abstract class Basic2DBatcher {
|
|
8
|
+
/** The maximum number of vertex. */
|
|
9
|
+
static MAX_VERTEX_COUNT: number;
|
|
10
|
+
static _canUploadSameBuffer: boolean;
|
|
11
|
+
constructor(engine: Engine);
|
|
12
|
+
drawElement(element: SpriteMaskElement | SpriteElement | TextRenderElement, camera: Camera, replaceMaterial: Material): void;
|
|
13
|
+
private _drawSubElement;
|
|
14
|
+
flush(camera: Camera, replaceMaterial: Material): void;
|
|
15
|
+
clear(): void;
|
|
16
|
+
destroy(): void;
|
|
17
|
+
private _createMesh;
|
|
18
|
+
private _updateData;
|
|
19
|
+
private _getSubMeshFromPool;
|
|
20
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Camera } from "../Camera";
|
|
2
|
+
import { Layer } from "../Layer";
|
|
3
|
+
import { Material } from "../material";
|
|
4
|
+
import { RenderTarget, TextureCubeFace } from "../texture";
|
|
5
|
+
import { RenderContext } from "./RenderContext";
|
|
6
|
+
import { RenderElement } from "./RenderElement";
|
|
7
|
+
import { RenderPass } from "./RenderPass";
|
|
8
|
+
/**
|
|
9
|
+
* Basic render pipeline.
|
|
10
|
+
*/
|
|
11
|
+
export declare class BasicRenderPipeline {
|
|
12
|
+
private static _tempVector0;
|
|
13
|
+
private static _tempVector1;
|
|
14
|
+
private _camera;
|
|
15
|
+
private _defaultPass;
|
|
16
|
+
private _renderPassArray;
|
|
17
|
+
private _lastCanvasSize;
|
|
18
|
+
private _cascadedShadowCaster;
|
|
19
|
+
/**
|
|
20
|
+
* Create a basic render pipeline.
|
|
21
|
+
* @param camera - Camera
|
|
22
|
+
*/
|
|
23
|
+
constructor(camera: Camera);
|
|
24
|
+
/**
|
|
25
|
+
* Default render pass.
|
|
26
|
+
*/
|
|
27
|
+
get defaultRenderPass(): RenderPass;
|
|
28
|
+
/**
|
|
29
|
+
* Add render pass.
|
|
30
|
+
* @param nameOrPass - The name of this Pass or RenderPass object. When it is a name, the following parameters need to be provided
|
|
31
|
+
* @param priority - Priority, less than 0 before the default pass, greater than 0 after the default pass
|
|
32
|
+
* @param renderTarget - The specified Render Target
|
|
33
|
+
* @param replaceMaterial - Replaced material
|
|
34
|
+
* @param mask - Perform bit and operations with Entity.Layer to filter the objects that this Pass needs to render
|
|
35
|
+
*/
|
|
36
|
+
addRenderPass(nameOrPass: string | RenderPass, priority?: number, renderTarget?: RenderTarget, replaceMaterial?: Material, mask?: Layer): void;
|
|
37
|
+
/**
|
|
38
|
+
* Remove render pass by name or render pass object.
|
|
39
|
+
* @param nameOrPass - Render pass name or render pass object
|
|
40
|
+
*/
|
|
41
|
+
removeRenderPass(nameOrPass: string | RenderPass): void;
|
|
42
|
+
/**
|
|
43
|
+
* Get render pass by name.
|
|
44
|
+
* @param name - Render pass name
|
|
45
|
+
*/
|
|
46
|
+
getRenderPass(name: string): RenderPass;
|
|
47
|
+
/**
|
|
48
|
+
* Destroy internal resources.
|
|
49
|
+
*/
|
|
50
|
+
destroy(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Perform scene rendering.
|
|
53
|
+
* @param context - Render context
|
|
54
|
+
* @param cubeFace - Render surface of cube texture
|
|
55
|
+
* @param mipLevel - Set mip level the data want to write
|
|
56
|
+
*/
|
|
57
|
+
render(context: RenderContext, cubeFace?: TextureCubeFace, mipLevel?: number): void;
|
|
58
|
+
private _drawRenderPass;
|
|
59
|
+
/**
|
|
60
|
+
* Push a render element to the render queue.
|
|
61
|
+
* @param element - Render element
|
|
62
|
+
*/
|
|
63
|
+
pushPrimitive(element: RenderElement): void;
|
|
64
|
+
private _drawBackgroundTexture;
|
|
65
|
+
private _callRender;
|
|
66
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class pool utils.
|
|
3
|
+
*/
|
|
4
|
+
export declare class ClassPool<T> {
|
|
5
|
+
private _elementPoolIndex;
|
|
6
|
+
private _elementPool;
|
|
7
|
+
private _type;
|
|
8
|
+
constructor(type: new () => T);
|
|
9
|
+
/**
|
|
10
|
+
* Get element from pool.
|
|
11
|
+
*/
|
|
12
|
+
getFromPool(): T;
|
|
13
|
+
/**
|
|
14
|
+
* Reset pool.
|
|
15
|
+
*/
|
|
16
|
+
resetPool(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Mesh } from "../graphic/Mesh";
|
|
2
|
+
import { SubMesh } from "../graphic/SubMesh";
|
|
3
|
+
import { Material } from "../material/Material";
|
|
4
|
+
import { Renderer } from "../Renderer";
|
|
5
|
+
import { RenderData } from "./RenderData";
|
|
6
|
+
/**
|
|
7
|
+
* Render element.
|
|
8
|
+
*/
|
|
9
|
+
export declare class MeshRenderData extends RenderData {
|
|
10
|
+
/** Mesh. */
|
|
11
|
+
mesh: Mesh;
|
|
12
|
+
/** Sub mesh. */
|
|
13
|
+
subMesh: SubMesh;
|
|
14
|
+
set(component: Renderer, material: Material, mesh: Mesh, subMesh: SubMesh): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Mesh } from "../graphic/Mesh";
|
|
2
|
+
import { SubMesh } from "../graphic/SubMesh";
|
|
3
|
+
import { Material } from "../material/Material";
|
|
4
|
+
import { Renderer } from "../Renderer";
|
|
5
|
+
import { ShaderPass } from "../shader/ShaderPass";
|
|
6
|
+
import { RenderState } from "../shader/state/RenderState";
|
|
7
|
+
import { RenderElement } from "./RenderElement";
|
|
8
|
+
/**
|
|
9
|
+
* Render element.
|
|
10
|
+
*/
|
|
11
|
+
export declare class MeshRenderElement extends RenderElement {
|
|
12
|
+
/** Mesh. */
|
|
13
|
+
mesh: Mesh;
|
|
14
|
+
/** Sub mesh. */
|
|
15
|
+
subMesh: SubMesh;
|
|
16
|
+
setValue(component: Renderer, mesh: Mesh, subMesh: SubMesh, material: Material, renderState: RenderState, shaderPass: ShaderPass): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Material } from "../material/Material";
|
|
2
|
+
import { Renderer } from "../Renderer";
|
|
3
|
+
import { ShaderPass } from "../shader";
|
|
4
|
+
import { RenderState } from "../shader/state/RenderState";
|
|
5
|
+
export declare class RenderElement {
|
|
6
|
+
component: Renderer;
|
|
7
|
+
material: Material;
|
|
8
|
+
multiRenderData: boolean;
|
|
9
|
+
renderState: RenderState;
|
|
10
|
+
shaderPass: ShaderPass;
|
|
11
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Color } from "@galacean/engine-math";
|
|
2
|
+
import { Camera } from "../Camera";
|
|
3
|
+
import { CameraClearFlags } from "../enums/CameraClearFlags";
|
|
4
|
+
import { Layer } from "../Layer";
|
|
5
|
+
import { Material } from "../material/Material";
|
|
6
|
+
import { RenderTarget } from "../texture/RenderTarget";
|
|
7
|
+
import { RenderQueue } from "./RenderQueue";
|
|
8
|
+
/**
|
|
9
|
+
* RenderPass.
|
|
10
|
+
*/
|
|
11
|
+
declare class RenderPass {
|
|
12
|
+
name: string;
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
priority: number;
|
|
15
|
+
renderTarget: RenderTarget;
|
|
16
|
+
replaceMaterial: Material;
|
|
17
|
+
mask: Layer;
|
|
18
|
+
renderOverride: boolean;
|
|
19
|
+
clearFlags: CameraClearFlags | undefined;
|
|
20
|
+
clearColor: Color | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Create a RenderPass.
|
|
23
|
+
* @param name - Pass name
|
|
24
|
+
* @param priority - Priority, less than 0 before the default pass, greater than 0 after the default pass
|
|
25
|
+
* @param renderTarget - The specified Render Target
|
|
26
|
+
* @param replaceMaterial - Replaced material
|
|
27
|
+
* @param mask - Perform bit and operations with Entity.Layer to filter the objects that this Pass needs to render
|
|
28
|
+
*/
|
|
29
|
+
constructor(name?: string, priority?: number, renderTarget?: any, replaceMaterial?: any, mask?: any);
|
|
30
|
+
/**
|
|
31
|
+
* Rendering callback, will be executed if renderOverride is set to true.
|
|
32
|
+
* @param camera - Camera
|
|
33
|
+
* @param opaqueQueue - Opaque queue
|
|
34
|
+
* @param alphaTestQueue - Alpha test queue
|
|
35
|
+
* @param transparentQueue - Transparent queue
|
|
36
|
+
*/
|
|
37
|
+
render(camera: Camera, opaqueQueue: RenderQueue, alphaTestQueue: RenderQueue, transparentQueue: RenderQueue): void;
|
|
38
|
+
/**
|
|
39
|
+
* Post rendering callback.
|
|
40
|
+
* @param camera - Camera
|
|
41
|
+
* @param opaqueQueue - Opaque queue
|
|
42
|
+
* @param alphaTestQueue - Alpha test queue
|
|
43
|
+
* @param transparentQueue - Transparent queue
|
|
44
|
+
*/
|
|
45
|
+
preRender(camera: Camera, opaqueQueue: RenderQueue, alphaTestQueue: RenderQueue, transparentQueue: RenderQueue): void;
|
|
46
|
+
/**
|
|
47
|
+
* Post rendering callback.
|
|
48
|
+
* @param camera - Camera
|
|
49
|
+
* @param opaqueQueue - Opaque queue
|
|
50
|
+
* @param alphaTestQueue - Alpha test queue
|
|
51
|
+
* @param transparentQueue - Transparent queue
|
|
52
|
+
*/
|
|
53
|
+
postRender(camera: Camera, opaqueQueue: RenderQueue, alphaTestQueue: RenderQueue, transparentQueue: RenderQueue): void;
|
|
54
|
+
}
|
|
55
|
+
export { RenderPass };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Camera } from "../Camera";
|
|
2
|
+
import { Engine } from "../Engine";
|
|
3
|
+
import { Layer } from "../Layer";
|
|
4
|
+
import { Material } from "../material/Material";
|
|
5
|
+
import { Shader } from "../shader";
|
|
6
|
+
import { RenderElement } from "./RenderElement";
|
|
7
|
+
/**
|
|
8
|
+
* Render queue.
|
|
9
|
+
*/
|
|
10
|
+
export declare class RenderQueue {
|
|
11
|
+
readonly items: RenderElement[];
|
|
12
|
+
private _spriteBatcher;
|
|
13
|
+
constructor(engine: Engine);
|
|
14
|
+
/**
|
|
15
|
+
* Push a render element.
|
|
16
|
+
*/
|
|
17
|
+
pushPrimitive(element: RenderElement): void;
|
|
18
|
+
render(camera: Camera, replaceMaterial: Material, mask: Layer, customShader: Shader): void;
|
|
19
|
+
/**
|
|
20
|
+
* Clear collection.
|
|
21
|
+
*/
|
|
22
|
+
clear(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Destroy internal resources.
|
|
25
|
+
*/
|
|
26
|
+
destroy(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Sort the elements.
|
|
29
|
+
*/
|
|
30
|
+
sort(compareFunc: Function): void;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* Modified based on v8.
|
|
34
|
+
* https://github.com/v8/v8/blob/7.2-lkgr/src/js/array.js
|
|
35
|
+
*/
|
|
36
|
+
private _quickSort;
|
|
37
|
+
private _insertionSort;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RenderData2D } from "../2d/data/RenderData2D";
|
|
2
|
+
import { Material } from "../material/Material";
|
|
3
|
+
import { Renderer } from "../Renderer";
|
|
4
|
+
import { ShaderPass } from "../shader";
|
|
5
|
+
import { RenderState } from "../shader/state/RenderState";
|
|
6
|
+
import { Texture2D } from "../texture";
|
|
7
|
+
import { RenderElement } from "./RenderElement";
|
|
8
|
+
export declare class SpriteElement extends RenderElement {
|
|
9
|
+
renderData: RenderData2D;
|
|
10
|
+
texture: Texture2D;
|
|
11
|
+
constructor();
|
|
12
|
+
setValue(component: Renderer, renderDate: RenderData2D, material: Material, texture: Texture2D, renderState: RenderState, shaderPass: ShaderPass): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Camera } from "../Camera";
|
|
2
|
+
import { VertexElement } from "../graphic/VertexElement";
|
|
3
|
+
import { Basic2DBatcher } from "./Basic2DBatcher";
|
|
4
|
+
import { SpriteMaskElement } from "./SpriteMaskElement";
|
|
5
|
+
export declare class SpriteMaskBatcher extends Basic2DBatcher {
|
|
6
|
+
createVertexElements(vertexElements: VertexElement[]): number;
|
|
7
|
+
canBatch(preElement: SpriteMaskElement, curElement: SpriteMaskElement): boolean;
|
|
8
|
+
updateVertices(element: SpriteMaskElement, vertices: Float32Array, vertexIndex: number): number;
|
|
9
|
+
drawBatches(camera: Camera): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RenderData2D } from "../2d/data/RenderData2D";
|
|
2
|
+
import { Material } from "../material/Material";
|
|
3
|
+
import { Renderer } from "../Renderer";
|
|
4
|
+
import { RenderElement } from "./RenderElement";
|
|
5
|
+
export declare class SpriteMaskElement extends RenderElement {
|
|
6
|
+
renderData: RenderData2D;
|
|
7
|
+
isAdd: boolean;
|
|
8
|
+
constructor();
|
|
9
|
+
setValue(component: Renderer, renderData: RenderData2D, material: Material): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VertexData2D } from "../2d/data/VertexData2D";
|
|
2
|
+
import { Material } from "../material/Material";
|
|
3
|
+
import { Renderer } from "../Renderer";
|
|
4
|
+
import { RenderData } from "./RenderData";
|
|
5
|
+
export declare class SpriteMaskRenderData extends RenderData {
|
|
6
|
+
isAdd: boolean;
|
|
7
|
+
verticesData: VertexData2D;
|
|
8
|
+
constructor();
|
|
9
|
+
set(component: Renderer, material: Material, verticesData: VertexData2D): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VertexData2D } from "../2d/data/VertexData2D";
|
|
2
|
+
import { Material } from "../material/Material";
|
|
3
|
+
import { Renderer } from "../Renderer";
|
|
4
|
+
import { Texture2D } from "../texture";
|
|
5
|
+
import { RenderData } from "./RenderData";
|
|
6
|
+
export declare class SpriteRenderData extends RenderData {
|
|
7
|
+
verticesData: VertexData2D;
|
|
8
|
+
texture: Texture2D;
|
|
9
|
+
dataIndex: number;
|
|
10
|
+
constructor();
|
|
11
|
+
set(component: Renderer, material: Material, verticesData: VertexData2D, texture: Texture2D, dataIndex?: number): void;
|
|
12
|
+
}
|