Home
last modified time | relevance | path

Searched refs:entity (Results 1 - 25 of 161) sorted by relevance

1234567

/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/
H A Dbtm_wl.c46 BtmWhiteListEntity *entity = MEM_MALLOC.alloc(sizeof(BtmWhiteListEntity)); in BtmAllocWhiteListEntity() local
47 if (entity != NULL) { in BtmAllocWhiteListEntity()
48 entity->addressType = addressType; in BtmAllocWhiteListEntity()
49 entity->address = *address; in BtmAllocWhiteListEntity()
51 return entity; in BtmAllocWhiteListEntity()
54 static void BtmFreeWhiteListEntity(void *entity) in BtmFreeWhiteListEntity() argument
56 MEM_MALLOC.free(entity); in BtmFreeWhiteListEntity()
61 BtmWhiteListEntity *entity = NULL; in BtmFindWhiteListEntityByType() local
65 entity = ListGetNodeData(node); in BtmFindWhiteListEntityByType()
66 if (entity in BtmFindWhiteListEntityByType()
90 BtmWhiteListEntity *entity = NULL; BtmFindWhiteListEntity() local
113 BtmWhiteListEntity *entity = NULL; BtmAddDeviceToWhiteList() local
167 BtmWhiteListEntity *entity = NULL; BtmRemoveDeviceFromWhiteList() local
276 BtmWhiteListEntity *entity = NULL; BtmIsDeviceInWhiteList() local
[all...]
H A Dbtm_inq_db.c34 BtmInquiryDBEntity *entity = MEM_MALLOC.alloc(sizeof(BtmInquiryDBEntity)); in BtmAllocInquiryDBEntity() local
35 if (entity != NULL) { in BtmAllocInquiryDBEntity()
36 entity->addr = *addr; in BtmAllocInquiryDBEntity()
37 entity->inquiryInfo = *info; in BtmAllocInquiryDBEntity()
39 return entity; in BtmAllocInquiryDBEntity()
42 static void BtmFreeInquiryDBEntiry(void *entity) in BtmFreeInquiryDBEntiry() argument
44 MEM_MALLOC.free(entity); in BtmFreeInquiryDBEntiry()
63 BtmInquiryDBEntity *entity = NULL; in BtmFindInquiryEntiryByAddress() local
66 entity = ListGetNodeData(node); in BtmFindInquiryEntiryByAddress()
67 if (entity ! in BtmFindInquiryEntiryByAddress()
84 BtmInquiryDBEntity *entity = BtmFindInquiryEntiryByAddress(addr); BtmAssignOrUpdateInquiryInfo() local
113 BtmInquiryDBEntity *entity = BtmFindInquiryEntiryByAddress(addr); BtmQueryInquiryInfoByAddr() local
[all...]
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Decs_listener.h39 virtual void DoEntityEvent(CORE_NS::IEcs::EntityListener::EventType type, const CORE_NS::Entity& entity) = 0;
41 const CORE_NS::IComponentManager& componentManager, const CORE_NS::Entity& entity) = 0;
80 void AddEntity(const CORE_NS::Entity& entity, IEcsProxyObject::WeakPtr object, CORE_NS::IComponentManager& manager) in AddEntity() argument
82 if (const auto& ite = entities_.find(entity.id); ite == entities_.cend()) { in AddEntity()
83 entities_[entity.id].push_back(ComponentProxy::Create(manager, object)); in AddEntity()
86 // In principle there should not be more than one EcsObject per entity in AddEntity()
87 // but it is possible to have several instances pointing to same entity in AddEntity()
88 auto& vec = entities_[entity.id]; in AddEntity()
91 if (object.Compare(oldEntity->entity) && &manager == oldEntity->cm) { in AddEntity()
99 entities_[entity in AddEntity()
115 RemoveEntity( const CORE_NS::Entity& entity, IEcsProxyObject::WeakPtr object, CORE_NS::IComponentManager& manager) RemoveEntity() argument
210 IEcsProxyObject::WeakPtr entity; global() member
[all...]
H A Dentity_collection.cpp142 void EntityCollection::RemoveEntityRecursive(CORE_NS::Entity entity) in RemoveEntityRecursive() argument
145 if (entity == *entityRef) { in RemoveEntityRecursive()
153 if (entityRef->second == entity) { in RemoveEntityRecursive()
160 auto uniqueIdentifier = GetUniqueIdentifier(entity); in RemoveEntityRecursive()
166 it->RemoveEntityRecursive(entity); in RemoveEntityRecursive()
175 void EntityCollection::AddEntity(EntityReference entity) in AddEntity() argument
177 AddEntities({ &entity, 1 }); in AddEntity()
183 for (const auto& entity : entities) { in AddEntities()
184 if (entity != Entity {}) { in AddEntities()
185 // TODO: make sure that the same entity i in AddEntities()
194 RemoveEntity(EntityReference entity) RemoveEntity() argument
241 SetId(string_view id, EntityReference entity) SetId() argument
270 SetUniqueIdentifier(string_view id, EntityReference entity) SetUniqueIdentifier() argument
[all...]
H A Dscene_holder.cpp182 if (c->entity == cameraEnt) { in SetCameraTarget()
324 if (!EntityUtil::IsValid(camera->entity)) in RenderCameras()
327 if (auto cc = cameraComponentManager_->Read(camera->entity)) { in RenderCameras()
333 activeCameras.push_back(camera->entity); in RenderCameras()
541 auto entity = node->GetEntity(); in CreateCamera() local
559 tcm->Set(entity, tc); in CreateCamera()
568 cameraComponentManager_->Set(entity, cc); in CreateCamera()
570 cameras_.emplace_back(CameraData::Create(entity)); in CreateCamera()
571 return entity; in CreateCamera()
587 auto entity in SetDefaultCamera() local
597 SetMainCamera(const Entity& entity) SetMainCamera() argument
638 AddCamera(const CORE_NS::Entity& entity) AddCamera() argument
648 RemoveCamera(const CORE_NS::Entity& entity) RemoveCamera() argument
875 GetEntityId(const CORE_NS::Entity& entity, BASE_NS::string_view& entityName, SCENE_NS::IEntityCollection& collection, BASE_NS::string_view backupCollection, CORE3D_NS::INameComponentManager& nameComponentManager) GetEntityId() argument
952 FindMesh(const BASE_NS::string_view name, const BASE_NS::string_view fullPath, Entity& entity) FindMesh() argument
996 GetResourceId(CORE_NS::Entity entity) GetResourceId() argument
1006 FindMaterial(const BASE_NS::string_view name, const BASE_NS::string_view fullPath, Entity& entity) FindMaterial() argument
1065 FindAnimation(const BASE_NS::string_view name, const BASE_NS::string_view fullPath, Entity& entity) FindAnimation() argument
1148 auto entity = ecsObject->GetEntity(); UpdateAttachments() local
1160 FindResource(const BASE_NS::string_view name, const BASE_NS::string_view fullPath, Entity& entity) FindResource() argument
1202 GetImageEntity(CORE_NS::Entity material, size_t index, CORE_NS::Entity& entity) GetImageEntity() argument
1241 CORE_NS::Entity entity; CreatePostProcess() local
1253 CORE_NS::Entity entity; CreateRenderConfiguration() local
1277 GetEntityUri(const CORE_NS::Entity& entity, BASE_NS::string& uriString) GetEntityUri() argument
1306 GetImageHandle( const CORE_NS::Entity& entity, RENDER_NS::RenderHandleReference& handle, RENDER_NS::GpuImageDesc& desc) GetImageHandle() argument
1317 SetEntityUri(const CORE_NS::Entity& entity, const BASE_NS::string& uriString) SetEntityUri() argument
1334 GetEntityName(const CORE_NS::Entity& entity, BASE_NS::string& nameString) GetEntityName() argument
1350 const Entity entity = uriComponentManager_->GetEntity(static_cast<IComponentManager::ComponentId>(i)); GetEntityByUri() local
1375 ResolveNodeFullPath(CORE_NS::IEcs& ecs, const CORE_NS::Entity& entity) ResolveNodeFullPath() argument
1501 auto entity = cameraObject->GetEntity(); ChangeCamera() local
1571 auto entity = ecs_->GetEntityManager().Create(); CreateMaterial() local
1587 RenameEntity(CORE_NS::Entity entity, const BASE_NS::string& name) RenameEntity() argument
1616 CloneEntity(CORE_NS::Entity entity, const BASE_NS::string& name, bool storeWithUniqueId) CloneEntity() argument
1630 DestroyEntity(CORE_NS::Entity entity) DestroyEntity() argument
1653 SetEntityActive(CORE_NS::Entity entity, bool active) SetEntityActive() argument
1658 ReparentEntity(CORE_NS::Entity entity, const BASE_NS::string& parentPath, size_t index) ReparentEntity() argument
1749 auto entity = GetMaterial(meshEntity, submeshIndex); GetMaterialName() local
1832 EntityReference entity = ecs_->GetEntityManager().CreateReferenceCounted(); BindUIBitmap() local
2218 auto entity = rhComponentManager_->GetEntityWithReference(linearHandle); LoadSampler() local
2267 auto entity = LoadSampler(ResolveSamplerUri(samplerId)); SetSampler() local
2364 EnableEnvironmentComponent(CORE_NS::Entity entity) EnableEnvironmentComponent() argument
2375 EnableLayerComponent(CORE_NS::Entity entity) EnableLayerComponent() argument
2386 EnableLightComponent(CORE_NS::Entity entity) EnableLightComponent() argument
2432 auto entity = ecs_->GetEntityManager().Create(); CreateMeshFromArrays() local
2477 auto entity = meshBuilder->CreateMesh(*ecs_); CreateMeshFromArrays() local
2562 ReleaseOwnership(CORE_NS::Entity entity) ReleaseOwnership() argument
2653 auto entity = child->GetEntity(); IsMultiMeshChild() local
2663 FindCachedRelatedEntity(const CORE_NS::Entity& entity) FindCachedRelatedEntity() argument
2694 auto entity = child->GetEntity(); SetMeshMultimeshArray() local
2758 auto entity = child->GetEntity(); SetOverrideMaterialMultimeshArray() local
2786 auto entity = child->GetEntity(); ResetOverrideMaterialMultimeshArray() local
2889 const CORE_NS::Entity entity = ecs_->GetEntityManager().Create(); SetInstanceCountMultimeshArray() local
2936 auto entity = child->GetEntity(); GetNode() local
2961 auto entity = child->GetEntity(); SetTransformation() local
2983 GetWorldMatrixComponentAABB( SCENE_NS::IPickingResult::Ptr ret, CORE_NS::Entity entity, bool isRecursive) GetWorldMatrixComponentAABB() argument
2997 GetTransformComponentAABB(SCENE_NS::IPickingResult::Ptr ret, CORE_NS::Entity entity, bool isRecursive) GetTransformComponentAABB() argument
[all...]
H A Dentity_collection.h63 void RemoveEntityRecursive(CORE_NS::Entity entity) override;
65 void SetId(BASE_NS::string_view id, CORE_NS::EntityReference 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;
69 void SetUniqueIdentifier(BASE_NS::string_view id, CORE_NS::EntityReference entity) 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) cons
[all...]
H A Decs_object.cpp68 void SetEntity(CORE_NS::IEcs::Ptr ecs, CORE_NS::Entity entity) override
71 // Should we allow setting a valid ecs with invalid entity?
72 if (CORE_NS::EntityUtil::IsValid(entity)) {
73 BindObject(ecs, entity);
88 void BindObject(CORE_NS::IEcs::Ptr ecsInstance, CORE_NS::Entity entity) override
90 if (ecsInstance && CORE_NS::EntityUtil::IsValid(entity)) {
92 entity_ = ecsInstance->GetEntityManager().GetReferenceCounted(entity);
97 commonListener->AddEntity(entity, GetSelf<SCENE_NS::IEcsProxyObject>(), *componentManager->manager);
106 entity, GetSelf<SCENE_NS::IEcsProxyObject>(), *componentManager->manager);
129 void DoEntityEvent(CORE_NS::IEcs::EntityListener::EventType type, const CORE_NS::Entity& /*entity*/) overrid
[all...]
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/EcsSerializer/src/ecs_serializer/
H A Dentity_collection.cpp60 void SetId(BASE_NS::string_view id, CORE_NS::EntityReference entity) override;
61 BASE_NS::string_view GetId(CORE_NS::Entity entity) const override;
67 int32_t GetSubCollectionIndexByRoot(CORE_NS::Entity entity) const override;
76 bool Contains(CORE_NS::Entity entity) const override;
77 bool IsExternal(CORE_NS::Entity entity) const override;
78 bool isSubCollectionRoot(CORE_NS::Entity entity) const override;
79 CORE_NS::EntityReference GetReference(CORE_NS::Entity entity) const override;
99 bool MarkComponentSerialized(CORE_NS::Entity entity, BASE_NS::Uid component, bool serialize) override;
100 bool MarkAllPropertiesSerialized(CORE_NS::Entity entity, BASE_NS::Uid component) override;
102 CORE_NS::Entity entity, BASE_N
236 AddEntity(EntityReference entity) AddEntity() argument
254 RemoveEntity(EntityReference entity) RemoveEntity() argument
295 SetId(string_view id, EntityReference entity) SetId() argument
[all...]
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/
H A Dintf_entity_collection.h75 virtual void RemoveEntityRecursive(CORE_NS::Entity entity) = 0;
76 virtual void SetId(BASE_NS::string_view id, CORE_NS::EntityReference 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;
80 virtual void SetUniqueIdentifier(BASE_NS::string_view id, CORE_NS::EntityReference entity) = 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) cons
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/
H A Drender_handle_component.h22 #include <core/ecs/entity.h>
33 * One can add Uri and NameComponents to the owning entity for easier resource identification. The entity owning this
50 * @param entity Entity.
51 * @return If the entity had a RenderHandleComponent the component's handle reference is returned.
53 virtual RENDER_NS::RenderHandleReference GetRenderHandleReference(CORE_NS::Entity entity) const = 0;
61 * @param entity Entity.
62 * @return If the entity had a RenderHandleComponent the component's handle reference is returned.
64 virtual RENDER_NS::RenderHandle GetRenderHandle(CORE_NS::Entity entity) const = 0;
70 /** Get an entity whic
87 CORE_NS::EntityReference entity = entityMgr.GetReferenceCounted(rhcMgr.GetEntityWithReference(handle)); GetOrCreateEntityReference() local
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/ecs/
H A Dintf_component_manager.h26 #include <core/ecs/entity.h>
82 /** Returns entity for component index. May return invalid entity if the entity is being destroyed.
92 * @param entity Entity to be checked.
94 virtual bool HasComponent(Entity entity) const = 0;
96 /** Retrieves component id for a given entity.
97 * @param entity Entity to be used as a search key.
99 virtual IComponentManager::ComponentId GetComponentId(Entity entity) const = 0;
101 /** Creates a default component for entity
207 CreateComponent(T& componentManager, const Entity& entity) CreateComponent() argument
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/components/
H A Dpost_process_configuration_component_manager.cpp149 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;
161 void SetData(Entity entity, const IPropertyHandle& dataHandle) override;
162 const IPropertyHandle* GetData(Entity entity) const override;
163 IPropertyHandle* GetData(Entity entity) override;
171 PostProcessConfigurationComponent Get(Entity entity) const override;
173 void Set(Entity entity, const PostProcessConfigurationComponent& aData) override;
175 ScopedHandle<const PostProcessConfigurationComponent> Read(Entity entity) cons
377 Create(Entity entity) Create() argument
398 Destroy(Entity entity) Destroy() argument
494 SetData(Entity entity, const IPropertyHandle& dataHandle) SetData() argument
520 GetData(Entity entity) GetData() argument
593 Set(Entity entity, const PostProcessConfigurationComponent& data) Set() argument
629 Write(Entity entity) Write() argument
635 Updated(Entity entity) Updated() argument
[all...]
H A Dmaterial_component_manager.cpp319 bool HasComponent(Entity entity) const override;
320 IComponentManager::ComponentId GetComponentId(Entity entity) const override;
321 void Create(Entity entity) override;
322 bool Destroy(Entity entity) override;
331 void SetData(Entity entity, const IPropertyHandle& dataHandle) override;
332 const IPropertyHandle* GetData(Entity entity) const override;
333 IPropertyHandle* GetData(Entity entity) override;
341 MaterialComponent Get(Entity entity) const override;
343 void Set(Entity entity, const MaterialComponent& aData) override;
345 ScopedHandle<const MaterialComponent> Read(Entity entity) cons
601 Create(Entity entity) Create() argument
622 Destroy(Entity entity) Destroy() argument
718 SetData(Entity entity, const IPropertyHandle& dataHandle) SetData() argument
742 GetData(Entity entity) GetData() argument
813 Set(Entity entity, const MaterialComponent& data) Set() argument
848 Write(Entity entity) Write() argument
854 Updated(Entity entity) Updated() argument
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/acl/
H A Dhci_acl.c137 HciTxPackets *entity = MEM_CALLOC.alloc(sizeof(HciTxPackets)); in AllocTxPacketsEntity() local
138 if (entity != NULL) { in AllocTxPacketsEntity()
139 entity->connectionHandle = connectionHandle; in AllocTxPacketsEntity()
141 return entity; in AllocTxPacketsEntity()
237 HciTxPackets *entity = NULL; in FindTxPacketsEntityByConnectionHandle() local
240 entity = (HciTxPackets *)ListGetNodeData(node); in FindTxPacketsEntityByConnectionHandle()
241 if (entity->connectionHandle == connectionHandle) { in FindTxPacketsEntityByConnectionHandle()
244 entity = NULL; in FindTxPacketsEntityByConnectionHandle()
248 return entity; in FindTxPacketsEntityByConnectionHandle()
253 HciTxPackets *entity in FindLeTxPacketsEntityByConnectionHandle() local
269 HciTxPackets *entity = FindTxPacketsEntityByConnectionHandle(connectionHandle); HciAddTxAclPacket() local
282 HciTxPackets *entity = FindTxPacketsEntityByConnectionHandle(connectionHandle); HciOnAclPacketComplete() local
290 HciTxPackets *entity = FindLeTxPacketsEntityByConnectionHandle(connectionHandle); HciAddTxLePacket() local
303 HciTxPackets *entity = FindLeTxPacketsEntityByConnectionHandle(connectionHandle); HciOnLePacketComplete() local
794 HciTxPackets *entity = FindTxPacketsEntityByConnectionHandle(connectionHandle); HciRecoveryNumOfAclDataPackets() local
807 HciTxPackets *entity = FindLeTxPacketsEntityByConnectionHandle(connectionHandle); HciRecoveryNumOfLeDataPackets() local
[all...]
/foundation/barrierfree/accessibility/services/test/mock/
H A Dmock_matching_skill.cpp39 std::string entity(""); in GetEntity()
40 return entity; in GetEntity()
43 void MatchingSkills::AddEntity(const std::string& entity) in AddEntity() argument
45 (void)entity; in AddEntity()
48 bool MatchingSkills::HasEntity(const std::string& entity) const in HasEntity()
50 (void)entity; in HasEntity()
54 void MatchingSkills::RemoveEntity(const std::string& entity) in RemoveEntity() argument
56 (void)entity; in RemoveEntity()
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_bigint_test.cpp97 RowEntity entity; in HWTEST_F() local
98 status = resultSet->GetRow(entity); in HWTEST_F()
100 auto value = entity.Get("value1"); in HWTEST_F()
106 value = entity.Get("value2"); in HWTEST_F()
131 RowEntity entity; in HWTEST_F() local
132 status = resultSet->GetRow(entity); in HWTEST_F()
134 auto value = entity.Get("value1"); in HWTEST_F()
140 value = entity.Get("value2"); in HWTEST_F()
167 RowEntity entity; in HWTEST_F() local
168 status = resultSet->GetRow(entity); in HWTEST_F()
239 RowEntity entity; HWTEST_F() local
281 RowEntity entity; HWTEST_F() local
323 RowEntity entity; HWTEST_F() local
367 RowEntity entity; HWTEST_F() local
405 RowEntity entity; HWTEST_F() local
[all...]
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/EcsSerializer/include/ecs_serializer/
H A Dintf_entity_collection.h72 virtual void SetId(string_view id, EntityReference entity) = 0;
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, Ui
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/ecshelper/ComponentTools/
H A Dbase_manager.h28 #include <core/ecs/entity.h>
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;
74 void SetData(Entity entity, const IPropertyHandle& dataHandle) override;
75 const IPropertyHandle* GetData(Entity entity) const override;
76 IPropertyHandle* GetData(Entity entity) override;
84 ComponentType Get(Entity entity) const override;
86 void Set(Entity entity, cons
[all...]
H A Dcomponent_query.cpp24 #include <core/ecs/entity.h>
102 if (const Entity entity = baseComponentSet.GetEntity(id); em.IsAlive(entity)) { in Execute()
104 row.entity = entity; in Execute()
114 manager ? manager->GetComponentId(entity) : IComponentManager::INVALID_COMPONENT_ID; in Execute()
137 mapping_[entity] = index; in Execute()
176 const ComponentQuery::ResultRow* ComponentQuery::FindResultRow(Entity entity) const in FindResultRow()
178 if (EntityUtil::IsValid(entity)) { in FindResultRow()
179 const auto it = mapping_.find(entity); in FindResultRow()
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/ecs/
H A Dentity_manager.cpp29 #include <core/ecs/entity.h>
125 // if the slot isn't free report a dead entity in Create()
156 // if the slot isn't free report a dead entity in CreateReferenceCounted()
174 EntityReference EntityManager::GetReferenceCounted(const Entity entity) in GetReferenceCounted() argument
176 if (EntityUtil::IsValid(entity)) { in GetReferenceCounted()
177 if (const uint32_t id = GetId(entity); id < entities_.size()) { in GetReferenceCounted()
179 // make sure the given entity id has the same generation and that the entity isn't dead or free. in GetReferenceCounted()
180 if ((e.generation == GetGeneration(entity)) && in GetReferenceCounted()
183 // entity was in GetReferenceCounted()
198 Destroy(const Entity entity) Destroy() argument
220 auto entity = MakeEntityId(e.generation, i); DestroyAllEntities() local
291 SetActive(const Entity entity, bool state) SetActive() argument
326 const Entity entity = MakeEntityId(e.generation, id); UpdateDeadEntities() local
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Dnode_system.cpp153 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 entity, const Math::Quat& rotation) = 0;
163 virtual bool GetEnabled(Entity entity) const = 0;
164 virtual void SetEnabled(Entity entity, boo
189 SceneNode(Entity entity, NodeAccess& nodeAccess) SceneNode() argument
534 AddNode(Entity const& entity) AddNode() argument
792 UpdateParent(Entity entity, Entity oldParent, Entity newParent) UpdateParent() argument
833 auto entity = nodeComponentManager_.GetEntity(i); global() variable
1057 const Entity entity = ecs_.GetEntityManager().Create(); CreateNode() local
1139 const auto entity = destroy->GetEntity(); DestroyNode() local
[all...]
H A Dskinning_system.cpp245 auto const onceId = to_hex(row.entity.id); in UpdateSkin()
246 CORE_LOG_ONCE_W(onceId.c_str(), "Invalid skin resource for entity %s", onceId.c_str()); in UpdateSkin()
258 auto const onceId = to_hex(row.entity.id); in UpdateSkin()
259 CORE_LOG_ONCE_W(onceId.c_str(), "Entity (%zu) and description (%zu) counts don't match for entity %s", in UpdateSkin()
347 previousJointMatricesManager_.Create(row.entity); in Update()
348 auto prev = previousJointMatricesManager_.Write(row.entity); in Update()
360 Entity const& skinIbmEntity, array_view<const Entity> const& joints, Entity const& entity, Entity const& skeleton) in CreateInstance()
363 !std::all_of(joints.begin(), joints.end(), [](const Entity& entity) { return EntityUtil::IsValid(entity); }) || in CreateInstance()
364 !EntityUtil::IsValid(entity)) { in CreateInstance()
359 CreateInstance( Entity const& skinIbmEntity, array_view<const Entity> const& joints, Entity const& entity, Entity const& skeleton) CreateInstance() argument
398 CreateInstance(Entity const& skinIbmEntity, Entity const& entity, Entity const& skeleton) CreateInstance() argument
442 DestroyInstance(Entity const& entity) DestroyInstance() argument
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/src/serialization/
H A Dimporter.cpp297 ReturnError Importer::ImportBuiltinValue(const ISerNode::ConstPtr& n, IAny& entity) in ImportBuiltinValue() argument
299 if (auto arr = interface_cast<IArrayAny>(&entity)) { in ImportBuiltinValue()
302 if (entity.GetTypeId() == UidFromType<float>()) { in ImportBuiltinValue()
307 entity.SetValue(static_cast<float>(d.InternalGetValue())); in ImportBuiltinValue()
311 return ImportSingleBuiltinValue(SupportedBuiltins {}, n, entity); in ImportBuiltinValue()
314 ReturnError Importer::ImportPointer(const ISerNode::ConstPtr& n, IAny& entity) in ImportPointer() argument
317 entity.SetValue(SharedPtrIInterface {}); in ImportPointer()
320 if (auto intf = GetPointer(entity)) { in ImportPointer()
334 if (entity.SetValue(interface_pointer_cast<CORE_NS::IInterface>(obj))) { in ImportPointer()
339 if (entity in ImportPointer()
347 ImportValue(const ISerNode::ConstPtr& n, IAny& entity) ImportValue() argument
434 ImportFromNode(const ISerNode::ConstPtr& node, IAny& entity) ImportFromNode() argument
444 Import(BASE_NS::string_view name, IAny& entity) Import() argument
500 ImportFromNode(const ISerNode::ConstPtr& node, IAny& entity) ImportFromNode() argument
[all...]
/foundation/graphic/graphic_3d/lume/LumeDotfield/src/systems/
H A Ddotfield_system.cpp182 const auto& dfc = dotfieldManager_.Get(prim.entity); in Update()
187 if (worldMatrixManager_.HasComponent(prim.entity)) { in Update()
188 WorldMatrixComponent wc = worldMatrixManager_.Get(prim.entity); in Update()
203 for (const auto& entity : entities) { in OnComponentEvent()
204 if (worldMatrixManager_.HasComponent(entity)) { in OnComponentEvent()
205 WorldMatrixComponent wc = worldMatrixManager_.Get(entity); in OnComponentEvent()
206 DotfieldComponent dfc = dotfieldManager_.Get(entity); in OnComponentEvent()
209 prim.entity = entity; in OnComponentEvent()
222 for (const auto& entity in OnComponentEvent()
[all...]
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/common/napi/
H A Dn_class.h55 template<class T> static bool SetEntityFor(napi_env env, napi_value obj, std::unique_ptr<T> entity) in SetEntityFor() argument
60 entity.get(), in SetEntityFor()
62 auto entity = static_cast<T *>(data); in SetEntityFor()
63 delete entity; in SetEntityFor()
67 entity.release(); in SetEntityFor()

Completed in 16 milliseconds

1234567