/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/ |
H A D | intf_mesh_util.h | 43 virtual CORE_NS::Entity GenerateCubeMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, 44 CORE_NS::Entity material, float width, float height, float depth) = 0; 53 virtual CORE_NS::Entity GeneratePlaneMesh( 54 const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, float width, float depth) = 0; 64 virtual CORE_NS::Entity GenerateSphereMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, 65 CORE_NS::Entity material, float radius, uint32_t rings, uint32_t sectors) = 0; 75 virtual CORE_NS::Entity GenerateConeMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, 76 CORE_NS::Entity material, float radius, float length, uint32_t sectors) = 0; 87 virtual CORE_NS::Entity GenerateTorusMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, 88 CORE_NS::Entity materia [all...] |
H A D | intf_scene_util.h | 46 * @param ecs Entity component system to contain the camera instance. 54 virtual CORE_NS::Entity CreateCamera(CORE_NS::IEcs& ecs, const BASE_NS::Math::Vec3& position, 58 * @param ecs Entity component system to contain the camera instance. 63 CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& renderResolution) const = 0; 68 * @param ecs Entity component system to contain the camera instance. 75 virtual void UpdateCameraViewport(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, 81 * @param ecs Entity component system to contain the camera instance. 82 * @param entity Entity to modify. 87 virtual void CameraLookAt(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::Vec3& eye, 92 * @param ecs Entity componen [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | scene_holder.h | 203 bool FindAnimation(const BASE_NS::string_view name, const BASE_NS::string_view fullPath, CORE_NS::Entity& entity); 206 bool FindMaterial(const BASE_NS::string_view name, const BASE_NS::string_view fullPath, CORE_NS::Entity& entity); 209 bool FindMesh(const BASE_NS::string_view name, const BASE_NS::string_view fullPath, CORE_NS::Entity& entity); 212 bool FindResource(const BASE_NS::string_view name, const BASE_NS::string_view fullPath, CORE_NS::Entity& entity); 218 BASE_NS::string GetResourceId(CORE_NS::Entity entity); 221 void SetMesh(CORE_NS::Entity targetEntity, CORE_NS::Entity mesh); 224 BASE_NS::string_view GetMeshName(CORE_NS::Entity referringEntity); 227 CORE_NS::Entity GetMaterial(CORE_NS::Entity meshEntit [all...] |
H A D | ecs_util.h | 34 inline void CloneComponent(CORE_NS::Entity srcEntity, const CORE_NS::IComponentManager& srcManager, in CloneComponent() 35 CORE_NS::IEcs& dstEcs, CORE_NS::Entity dstEntity) in CloneComponent() 54 CORE_NS::IEcs& srcEcs, CORE_NS::Entity srcEntity, CORE_NS::IEcs& dstEcs, CORE_NS::Entity dstEntity) in CloneComponents() 63 inline CORE_NS::Entity CloneEntity(CORE_NS::IEcs& srcEcs, CORE_NS::Entity src, CORE_NS::IEcs& dstEcs) in CloneEntity() 65 CORE_NS::Entity dst = dstEcs.GetEntityManager().Create(); in CloneEntity() 70 inline CORE_NS::EntityReference CloneEntityReference(CORE_NS::IEcs& srcEcs, CORE_NS::Entity src, CORE_NS::IEcs& dstEcs) in CloneEntityReference() 77 inline void GatherEntityReferences(BASE_NS::vector<CORE_NS::Entity*>& entities, in GatherEntityReferences() 82 entities.emplace_back(reinterpret_cast<CORE_NS::Entity*>(offse in GatherEntityReferences() [all...] |
H A D | ecs_animation.h | 89 void SetEntity(CORE_NS::Entity entity) override 110 void DoEntityEvent(CORE_NS::IEcs::EntityListener::EventType type, const CORE_NS::Entity& entity) override 118 const CORE_NS::IComponentManager& componentManager, const CORE_NS::Entity& entity) override 125 CORE_NS::Entity GetEntity() const override 172 CORE_NS::Entity entity_; 234 void DoEntityEvent(CORE_NS::IEcs::EntityListener::EventType, const CORE_NS::Entity& entity) override {} 236 const CORE_NS::IComponentManager& componentManager, const CORE_NS::Entity& entity) override; 241 bool SetRootEntity(CORE_NS::Entity entity) override; 242 CORE_NS::Entity GetRootEntity() const override; 244 void SetEntity(CORE_NS::IEcs& ecs, CORE_NS::Entity entit [all...] |
H A D | entity_collection.h | 63 void RemoveEntityRecursive(CORE_NS::Entity entity) override; 66 BASE_NS::string_view GetId(CORE_NS::Entity entity) const override; 67 BASE_NS::string_view GetIdRecursive(CORE_NS::Entity entity) const override; 70 BASE_NS::string_view GetUniqueIdentifier(CORE_NS::Entity entity) const override; 71 BASE_NS::string_view GetUniqueIdentifierRecursive(CORE_NS::Entity entity) const override; 77 int32_t GetSubCollectionIndexByRoot(CORE_NS::Entity entity) const override; 87 bool Contains(CORE_NS::Entity entity) const override; 88 bool IsExternal(CORE_NS::Entity entity) const override; 89 bool isSubCollectionRoot(CORE_NS::Entity entity) const override; 90 CORE_NS::EntityReference GetReference(CORE_NS::Entity entit [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/ecshelper/ComponentTools/ |
H A D | base_manager.h | 60 Entity GetEntity(ComponentId index) const override; 62 bool HasComponent(Entity entity) const override; 63 IComponentManager::ComponentId GetComponentId(Entity entity) const override; 64 void Create(Entity entity) override; 65 bool Destroy(Entity entity) override; 67 void Destroy(BASE_NS::array_view<const Entity> gcList) override; 68 BASE_NS::vector<Entity> GetAddedComponents() override; 69 BASE_NS::vector<Entity> GetRemovedComponents() override; 70 BASE_NS::vector<Entity> GetUpdatedComponents() override; 74 void SetData(Entity entit [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/ecs/ |
H A D | entity.h | 31 /** Entity struct which holds the id 35 struct Entity { struct 40 inline bool operator==(Entity const& lhs, Entity const& rhs) in operator ==() 45 inline bool operator!=(Entity const& lhs, Entity const& rhs) in operator !=() 50 /** Entity util for checking entities validity */ 53 inline bool IsValid(const Entity entity) in IsValid() 55 return entity != Entity {}; in IsValid() 67 inline uint64_t hash(const CORE_NS::Entity [all...] |
H A D | intf_component_manager.h | 84 virtual Entity GetEntity(IComponentManager::ComponentId index) const = 0; 90 // Entity api. 91 /** Checks if Entity has component. 92 * @param entity Entity to be checked. 94 virtual bool HasComponent(Entity entity) const = 0; 97 * @param entity Entity to be used as a search key. 99 virtual IComponentManager::ComponentId GetComponentId(Entity entity) const = 0; 102 * @param entity Entity which for component is created. 104 virtual void Create(Entity entity) = 0; 107 * @param entity Entity wher [all...] |
H A D | intf_entity_manager.h | 38 /** Entity Created 41 /** Entity was activated 44 /** Entity was de-activated 47 /** Entity destroyed 51 using IteratorValue = Entity; 60 virtual Entity Create() = 0; 69 * @param entity Entity to reference count. 72 virtual EntityReference GetReferenceCounted(Entity entity) = 0; 75 * @param entity Entity what we want to destroy. 77 virtual void Destroy(const Entity entit [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | mesh_util.h | 39 CORE_NS::Entity GeneratePlaneMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 41 CORE_NS::Entity GenerateSphereMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 43 CORE_NS::Entity GenerateConeMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 45 CORE_NS::Entity GenerateTorusMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 47 CORE_NS::Entity GenerateCubeMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity materia [all...] |
H A D | scene_util.h | 42 CORE_NS::Entity CreateCamera(CORE_NS::IEcs& ecs, const BASE_NS::Math::Vec3& position, 45 CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& renderResolution) const override; 46 void UpdateCameraViewport(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& renderResolution, 48 void CameraLookAt(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::Vec3& eye, 51 CORE_NS::Entity CreateLight(CORE_NS::IEcs& ecs, const LightComponent& lightComponent, 57 CORE_NS::Entity entity; 59 CORE_NS::Entity mesh; 61 CORE_NS::Entity material; 68 void CreateReflectionPlaneComponent(CORE_NS::IEcs& ecs, const CORE_NS::Entity& nodeEntity) override; 70 IAnimationPlayback* RetargetSkinAnimation(CORE_NS::IEcs& ecs, CORE_NS::Entity targetEntit [all...] |
H A D | uri_lookup.cpp | 34 Entity LookupResourceByUri( in LookupResourceByUri() 40 if (Entity entity = uriManager.GetEntity(i); entityManager.IsAlive(entity)) { in LookupResourceByUri() 52 template Entity LookupResourceByUri<>( 55 template Entity LookupResourceByUri<>( 58 template Entity LookupResourceByUri<>( 61 template Entity LookupResourceByUri<>( 64 template Entity LookupResourceByUri<>(
|
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/systems/ |
H A D | intf_skinning_system.h | 25 struct Entity; 36 * @param skinIbmEntity Entity where we get skin ibm matrices. 39 * @param entity Entity where we get node which we use in instance creation. 40 * @param skeleton Entity pointing to the node that is the common root of the joint entity hierarchy (optional). 42 virtual void CreateInstance(CORE_NS::Entity const& skinIbmEntity, 43 BASE_NS::array_view<const CORE_NS::Entity> const& joints, CORE_NS::Entity const& entity, 44 CORE_NS::Entity const& skeleton) = 0; 47 * @param skinIbmEntity Entity where we get skin ibm matrices and joint entities. 48 * @param entity Entity wher [all...] |
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/EcsSerializer/include/ecs_serializer/ |
H A D | ecs_clone_util.h | 31 void CloneComponent(Entity srcEntity, const IComponentManager& srcManager, in CloneComponent() 32 IEcs& dstEcs, Entity dstEntity) in CloneComponent() 51 IEcs& srcEcs, Entity srcEntity, IEcs& dstEcs, Entity dstEntity) in CloneComponents() 60 inline Entity CloneEntity(IEcs& srcEcs, Entity src, IEcs& dstEcs) in CloneEntity() 62 Entity dst = dstEcs.GetEntityManager().Create(); in CloneEntity() 67 inline EntityReference CloneEntityReference(IEcs& srcEcs, Entity src, IEcs& dstEcs) in CloneEntityReference() 74 void GatherEntityReferences(vector<Entity*>& entities, in GatherEntityReferences() 79 entities.emplace_back(reinterpret_cast<Entity*>(offse in GatherEntityReferences() [all...] |
H A D | intf_entity_collection.h | 73 virtual string_view GetId(Entity entity) const = 0; 80 virtual int32_t GetSubCollectionIndexByRoot(Entity entity) const = 0; 90 virtual bool Contains(Entity entity) const = 0; 91 virtual bool IsExternal(Entity entity) const = 0; 92 virtual bool isSubCollectionRoot(Entity entity) const = 0; 93 virtual EntityReference GetReference(Entity entity) const = 0; 115 virtual bool MarkComponentSerialized(Entity entity, Uid component, bool serialize) = 0; 116 virtual bool MarkAllPropertiesSerialized(Entity entity, Uid component) = 0; 118 Entity entity, Uid component, string_view propertyPath, bool serialize) = 0; 120 Entity entit [all...] |
H A D | ecs_animation_util.h | 33 void UpdateAnimationTrackTargets(IEcs& ecs, Entity animationEntity, Entity rootNode) in UpdateAnimationTrackTargets() 50 vector<Entity> targetEntities; in UpdateAnimationTrackTargets() 53 [&manager = nameManager, &node](const Entity& trackEntity) { in UpdateAnimationTrackTargets() 59 return Entity {}; in UpdateAnimationTrackTargets() 66 to_hex(static_cast<const Entity&>(track->target).id).data()); in UpdateAnimationTrackTargets()
|
/foundation/resourceschedule/ffrt/src/core/ |
H A D | entity.cpp | 21 VersionCtx* Entity::VA2Ctx(const void* p, SCPUEUTask* task __attribute__((unused))) in VA2Ctx() 32 void Entity::RecycleVersion() in RecycleVersion() 34 for (auto it = Entity::Instance()->versionTrashcan.cbegin(); it != Entity::Instance()->versionTrashcan.cend();) { in RecycleVersion() 45 auto data = std::as_const(Entity::Instance()->vaMap).find(next->signature); in RecycleVersion() 46 if (data != Entity::Instance()->vaMap.end()) { in RecycleVersion() 47 Entity::Instance()->vaMap.erase(data); in RecycleVersion() 51 Entity::Instance()->versionTrashcan.erase(it++); in RecycleVersion()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/ |
H A D | render_preprocessor_system.h | 70 BASE_NS::array_view<const CORE_NS::Entity> GetRenderBatchMeshEntities() const; 71 BASE_NS::array_view<const CORE_NS::Entity> GetInstancingAllowedEntities() const; 72 BASE_NS::array_view<const CORE_NS::Entity> GetInstancingDisabledEntities() const; 82 Aabb GetRenderMeshAabb(CORE_NS::Entity renderMesh) const; 84 BASE_NS::array_view<const Aabb> GetRenderMeshAabbs(CORE_NS::Entity renderMesh) const; 94 CORE_NS::Entity mesh; 95 CORE_NS::Entity batch; 96 CORE_NS::Entity skin; 101 CORE_NS::Entity material; 153 BASE_NS::vector<CORE_NS::Entity> renderMeshComponents [all...] |
H A D | skinning_system.h | 63 void CreateInstance(CORE_NS::Entity const& skinIbmEntity, BASE_NS::array_view<const CORE_NS::Entity> const& joints, 64 CORE_NS::Entity const& entity, CORE_NS::Entity const& skeleton) override; 66 CORE_NS::Entity const& skinIbmEntity, CORE_NS::Entity const& entity, CORE_NS::Entity const& skeleton) override; 67 void DestroyInstance(CORE_NS::Entity const& entity) override; 71 void UpdateJointTransformations(bool isEnabled, const BASE_NS::array_view<CORE_NS::Entity const>& jointEntities,
|
H A D | node_system.cpp | 38 bool operator<(const Entity& lhs, const Entity& rhs) in operator <() 153 virtual string GetName(Entity entity) const = 0; 154 virtual void SetName(Entity entity, string_view name) = 0; 156 virtual Math::Vec3 GetPosition(Entity entity) const = 0; 157 virtual Math::Quat GetRotation(Entity entity) const = 0; 158 virtual Math::Vec3 GetScale(Entity entity) const = 0; 159 virtual void SetScale(Entity entity, const Math::Vec3& scale) = 0; 160 virtual void SetPosition(Entity entity, const Math::Vec3& position) = 0; 161 virtual void SetRotation(Entity entit [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/ |
H A D | intf_entity_collection.h | 50 // Creates a new Empty Entity Collection with the same ECS as source 75 virtual void RemoveEntityRecursive(CORE_NS::Entity entity) = 0; 77 virtual BASE_NS::string_view GetId(CORE_NS::Entity entity) const = 0; 78 virtual BASE_NS::string_view GetIdRecursive(CORE_NS::Entity entity) const = 0; 81 virtual BASE_NS::string_view GetUniqueIdentifier(CORE_NS::Entity entity) const = 0; 82 virtual BASE_NS::string_view GetUniqueIdentifierRecursive(CORE_NS::Entity entity) const = 0; 89 virtual int32_t GetSubCollectionIndexByRoot(CORE_NS::Entity entity) const = 0; 100 virtual bool Contains(CORE_NS::Entity entity) const = 0; 101 virtual bool IsExternal(CORE_NS::Entity entity) const = 0; 102 virtual bool isSubCollectionRoot(CORE_NS::Entity entit [all...] |
H A D | intf_ecs_animation.h | 31 virtual void SetEntity(CORE_NS::Entity entity) = 0; 32 virtual CORE_NS::Entity GetEntity() const = 0; 51 virtual bool SetRootEntity(CORE_NS::Entity entity) = 0; 52 virtual CORE_NS::Entity GetRootEntity() const = 0; 54 virtual void SetEntity(CORE_NS::IEcs& ecs, CORE_NS::Entity entity) = 0; 55 virtual CORE_NS::Entity GetEntity() const = 0; 57 virtual bool Retarget(CORE_NS::Entity entity) = 0; 70 CORE_NS::Entity rootEntity, CORE_NS::Entity target, BASE_NS::string_view property) = 0; 71 virtual IEcsTrackAnimation::Ptr GetAnimationTrack(CORE_NS::Entity targe [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/ecs/ |
H A D | entity_manager.h | 41 Entity Create() override; 43 EntityReference GetReferenceCounted(Entity entity) override; 44 void Destroy(const Entity entity) override; 47 bool IsAlive(const Entity entity) const override; 54 void SetActive(const Entity entity, bool state) override; 56 BASE_NS::vector<Entity> GetRemovedEntities(); 57 BASE_NS::vector<BASE_NS::pair<Entity, EventType>> GetEvents(); 65 /* Entity is ready for re-use. 68 /* Entity is alive and active. 71 /* Entity i [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/components/ |
H A D | post_process_configuration_component_manager.cpp | 147 Entity GetEntity(ComponentId index) const override; 149 bool HasComponent(Entity entity) const override; 150 IComponentManager::ComponentId GetComponentId(Entity entity) const override; 151 void Create(Entity entity) override; 152 bool Destroy(Entity entity) override; 154 void Destroy(array_view<const Entity> gcList) override; 155 vector<Entity> GetAddedComponents() override; 156 vector<Entity> GetRemovedComponents() override; 157 vector<Entity> GetUpdatedComponents() override; 161 void SetData(Entity entit [all...] |