Enum in ldk_entity.h

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;
Function in ldk_entity.h

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.

Function in ldk_entity.h

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.
Function in ldk_entity.h

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.

Function in ldk_entity.h

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.
Function in ldk_entity.h

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.