VG3_coll_q_remove()
Remove an object-instance from a quadtree.SYNTAX
int
VG3_coll_q_remove(struct vg3_quadtree *qdtr,
void *optr)
FUNCTION PARAMETERS
qdtr | Quadtree |
optr | Object-instance to remove (see element optr of struct vg3_coll) |
RETURN VALUE
Returns 0 if OK or -1 on failure.
Returns integer:
- 0: Object-instance not found
- 1: All occurrences of the object-instance are removed
DESCRIPTION
Remove all occurrences of an object-instance from a quadtree.
This should be done before moving the object-instance or when deleting it.
SEE ALSO