LDKEntityInternalFlags
typedef enum LDKEntityInternalFlags{
LDK_ENTITY_INTERNAL_NONE=0,
LDK_ENTITY_INTERNAL_PENDING_DELETE=1<<0,
LDK_ENTITY_INTERNAL_HAS_TRANSFORM=1<<1,
LDK_ENTITY_INTERNAL_HAS_CAMERA=1<<2,
LDK_ENTITY_INTERNAL_HAS_RENDERABLE=1<<3,
LDK_ENTITY_INTERNAL_HAS_LIGHT=1<<4,
LDK_ENTITY_INTERNAL_EDITOR=1<<5
}LDKEntityInternalFlags;
ldk_entity_flags_add
Add the entity flags.
LDK_API void ldk_entity_flags_add(
LDKEntityRegistry *system,
LDKEntity entity,
u16 flags
);
Parameters
LDKEntityRegistry *system
- System used by this operation.
LDKEntity entity
- Entity to inspect or modify.
u16 flags
- Bitmask of options controlling this operation.
ldk_entity_flags_get
Get the entity flags.
LDK_API u16 ldk_entity_flags_get(
LDKEntityRegistry *system,
LDKEntity entity
);
Returns
The requested value.
ldk_entity_flags_has
Check whether an entity has the requested flags.
LDK_API bool ldk_entity_flags_has(
LDKEntityRegistry *system,
LDKEntity entity,
u16 flags
);
Parameters
LDKEntityRegistry *system
- System used by this operation.
LDKEntity entity
- Entity to inspect or modify.
u16 flags
- Bitmask of options controlling this operation.
Returns
True when the queried condition holds; false otherwise.
ldk_entity_flags_remove
Remove the entity flags.
LDK_API void ldk_entity_flags_remove(
LDKEntityRegistry *system,
LDKEntity entity,
u16 flags
);
Parameters
LDKEntityRegistry *system
- System used by this operation.
LDKEntity entity
- Entity to inspect or modify.
u16 flags
- Bitmask of options controlling this operation.
ldk_entity_flags_set
Set the entity flags.
LDK_API void ldk_entity_flags_set(
LDKEntityRegistry *system,
LDKEntity entity,
u16 flags
);
Parameters
LDKEntityRegistry *system
- System used by this operation.
LDKEntity entity
- Entity to inspect or modify.
u16 flags
- Bitmask of options controlling this operation.
ldk_entity_internal_flags_add
Add the entity internal flags.
LDK_API void ldk_entity_internal_flags_add(
LDKEntityRegistry *system,
LDKEntity entity,
u16 flags
);
Parameters
LDKEntityRegistry *system
- System used by this operation.
LDKEntity entity
- Entity to inspect or modify.
u16 flags
- Bitmask of options controlling this operation.
ldk_entity_internal_flags_get
Get the entity internal flags.
LDK_API u16 ldk_entity_internal_flags_get(
LDKEntityRegistry *system,
LDKEntity entity
);
Returns
The requested value.
ldk_entity_internal_flags_has
Check whether an entity has the requested internal flags.
LDK_API bool ldk_entity_internal_flags_has(
LDKEntityRegistry *system,
LDKEntity entity,
u16 flags
);
Parameters
LDKEntityRegistry *system
- System used by this operation.
LDKEntity entity
- Entity to inspect or modify.
u16 flags
- Bitmask of options controlling this operation.
Returns
True when the queried condition holds; false otherwise.
ldk_entity_internal_flags_remove
Remove the entity internal flags.
LDK_API void ldk_entity_internal_flags_remove(
LDKEntityRegistry *system,
LDKEntity entity,
u16 flags
);
Parameters
LDKEntityRegistry *system
- System used by this operation.
LDKEntity entity
- Entity to inspect or modify.
u16 flags
- Bitmask of options controlling this operation.
ldk_entity_internal_flags_set
Set the entity internal flags.
LDK_API void ldk_entity_internal_flags_set(
LDKEntityRegistry *system,
LDKEntity entity,
u16 flags
);
Parameters
LDKEntityRegistry *system
- System used by this operation.
LDKEntity entity
- Entity to inspect or modify.
u16 flags
- Bitmask of options controlling this operation.