Ovis_Entity_Parent_Get()
Abstract
Returns the parent of an Ovis entity.
Syntax
Ovis_Entity_Parent_Get (entity_ptr)
| Argument | Type | Description |
|---|---|---|
entity_ptr |
OvisT_Entity * |
Ovis entity |
Return Type
OvisT_Entity *
Pointer to the parent entity
Header
ovis_entity.h
Details
This function accesses the entity hierarchy and returns the parent of the Ovis entity.
Example
OvisT_Entity * parent,* child;
/* …child created elsewhere */
parent = Ovis_Entity_Parent_Get (child);
Errors
- Entity is NIL.
Reference
- Use the function
Ovis_Entity_Child_Entity_Count()to get the number of child entities of an entity. - Use the function
Ovis_Entity_Child_Entity_Nth()to get one child entity of an entity.